HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tag
Where do you put visible content about the HTML document?
Within the body tag
Where do the head and body tags go in a valid HTML document?
The head goes at the top, below the doctype declaration and html tag
The body will come after the head tag
What is the purpose of a DOCTYPE declaration?
It lets us know what version of HTML you are using
Give five examples of HTML element types.
!DOCTYPE, head, body, footer, ul, li
What is the purpose of HTML attributes?
Attribute tell us more information about the element
Give an example of an HTML entity (escape character).
& with copy © is the copyright symbol and & with reg ® is the registered trademark symbol
How do block-level elements affect the document flow?
Block-level elements always start on a new line
How do inline elements affect the document flow?
Inline elements continue in the same line as their neighboring elements
What are the default width and height of a block-level element?
The width of its parent element and the height of its content
What are the default width and height of an inline element?
The height and width of its content
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered while and unordered list has bullet points
Is an HTML list a block element or an inline element?
Lists are block elements because they start on new line
What is a relative URL?
A relative URL is a link to a file within the same domain
What is an absolute URL?
an absolute URL links to an exact webpage using the entire URL