Web Design Exam Flashcards
What does HTML stand for?
Hypertext Markup Language
What are the 4 rules of XHTML 1.0
- Close all tags
- All tags lowercase
- All attributes in quotes
- All tags properly nested
What is the first line in an HTML5 page?
< hr >
Horizontal rule or line tag
What is the syntax for adding an image?
< img src’“file.jpg” alt=”alternative name” >
How do you make font bold?
< strong > tag
What are the two tags for making lists?
< ol >
< ul >
Where does the < title > tag go?
The head
How do you add a link?
< a href=”url.com” > < /a >
What has to be added to an anchor tag to make a webpage open in a new tab?
target=”_blank”
How do you link an email?
href=”mailto:email@email.com”
How to you link a phone number?
href=”tel:5551234567”
What do you add to the stylesheet to make sure HTML5 elements are displayed properly on old browsers?
display: block;
How do you specify class in CSS?
.classname
How do you specify id in CSS?
idname
What is the shorthand for specifying margin?
margin: top, right, bottom left
What is the syntax for adding borders?
border: width style color
ex. border: 1px solid red;
What is the order of elements in the box model from the inside out?
content - padding - border - margin
How do block elements work?
Start on a new line and take up entire width available
How do inline elements work?
Rendered where they occur and only take up as much space as necessary
Which element should you add a float to?
The first in the code