HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the and tags go in a valid HTML document?
within the html element
What is the purpose of a declaration?
- Declares the type of html code being used
- can help the browser render the page correctly
- can be used for xml declarations
Give five examples of HTML element tags.
P, span, h1, img, title
What is the purpose of HTML attributes?
Provide additional info about the contents of an element
Give an example of an HTML entity (escape character).
& (ampersand), < (less than sign)
How do block-level elements affect the document flow?
They always start on a new line
How do inline elements affect the document flow?
They appear to continue on the same line as their neighboring elements
What are the default width and height of a block-level element?
Takes up as much width as possible, and the same height as the text
What are the default width and height of an inline element?
Takes up only as much width as it needs to, and the same height as the text
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered, and unordered list items begin with a bullet point
Is an HTML list a block element or an inline element?
Block level
What HTML tag is used to link to another website?
The a element with an href attribute
What is an absolute URL?
The full address for the link