HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element
Where do you put visible content about the HTML document?
Within the body element
Where do the head and body tags go in a valid HTML document?
Within the html element as child elements
What is the purpose of a < !DOCTYPE > declaration?
To specify the version of HTML the page is written in
5 examples of HTML elements
body, title, p, h1, div
What is the purpose of HTML attributes?
To customize the behavior of HTML elements
What is an example of an HTML entity (escape character)?
& lt ; (no spaces)
How do block-level elements affect the document flow?
It occupies the entire horizontal space of its parent element and vertical space equal to the height of its container
How do inline elements affect the document flow?
Only takes up as much width as necessary and does NOT start on a new line
Default width and height of a block-level element
Width: 100%
Height: auto
Default width and height of an inline element
Auto
Difference between an ordered list and an unordered list
Ordered lists are numbered while unordered lists use bullet points
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tag
What is an absolute URL?
The full path of a URL linking to an external website