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?
The head goes above the body within the HTML element.
What is the purpose of a declaration?
To tell the browser which version of HTML is being used.
Give five examples of HTML element tags.
head, body, li, div, p, footer, header, h1
What is the purpose of HTML attributes?
Attributes are names and values that give extra information about the element.
Give an example of an HTML entity (escape character).
Ampersand and trademark, greater-than and less-than
How do block-level elements affect the document flow?
Each starts on a new line and occupies the entire space of that line.
How do inline elements affect the document flow?
They don’t, because they don’t start on a new line.
What are the default width and height of a block-level element?
A block-level element takes up the entire width of its parent element.
What are the default width and height of an inline element?
Inline default is the width of the content between the open and close.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are ordered, unordered arent.
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
Absolute URLs take you away from the current domain