HTML Flashcards
Where do you put non-visible content about the HTML document?
The “head” element
Where do you put visible content about the HTML document?
The “body” element
Where do the “head” and “body” tags go in a valid HTML document?
The opening “head” tag goes after the opening “html” tag. The opening “body” tag goes after the closing “/head” tag.
What is the purpose of a !DOCTYPE declaration?
To tell the browser what language our document is in
Give five examples of HTML element tags.
head, body, div, span, p
What is the purpose of HTML attributes?
To provide additional information about the element
Give an example of an HTML entity (escape character).
® ©
How do block-level elements affect the document flow?
Start a new line, take up 100% width
How do inline elements affect the document flow?
Do not start a new line, only take up as much space as the need
What are the default width and height of a block-level element?
width: 100%;
height: auto;
What are the default width and height of an inline element?
width: auto;
height: auto;
What is the difference between an ordered list and an unordered list in HTML?
An ordered list has numbers for each list item
An unordered list does not
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
“a”
What is an absolute URL?
A URL that includes a protocol and domain name