HTML Flashcards
Where do you put non-visible content about the HTML document?
header
Where do you put visible content about the HTML document?
body
Where do the head and body tags go in a valid HTML document?
head tag is above body tag
What is the purpose of a !DOCTYPE declaration?
informs the browser what language the document will be in
Give five examples of HTML element tags.
header, title, body, unordered lists, ordered lists, list element, etc
What is the purpose of HTML attributes?
gives additional information about the tag and can modify it
Give an example of an HTML entity (escape character)
ampersand reg;
How do block-level elements affect the document flow?
They split up the document flow by creating a new line/block
How do inline elements affect the document flow?
They act within the flow (they don’t create a new line/block)
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?
ordered lists are numbered (for lists where order matters)
unordered lists are just bullets (for lists where order does not matter)
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?
external navigation - includes entire URL/domain name
navigating to a different website