HTML Flashcards
Where do you put non-visible content about the HTML document?
You put non-visible content about the HTML document within the head element
Where do you put the visible content about the HTML document?
You put the visible content about the HTML document within the body element
Where do the head and body tags go in a valid HTML document?
The head and body tags go between / within the HTML element
What is the purpose of a !DOCTYPE declaration?
The purpose of a DOCTYPE declaration is to let browsers know which version of HTML is being loaded
Give five examples of HTML element types
p, h1-h6, div, span, body, head
What is the purpose of HTML attributes?
The purpose of HTML attributes is to provide additional information / modification to the element
Give an example of an HTML entity (escape character)
ampersand
How do block-level elements affect the document flow?
Block level elements affect the document flow by taking the full width of the provided container and beginning on new lines
How do inline elements affect the document flow?
Inline elements are only affected within the area that they are in
What are the default width and height of a block-level element?
full width, content height
What are the default width and height of an inline element?
Content width, and content height
What is the difference between an ordered list and an unordered list?
an ordered list is numbered and order matters
Is an HTML list a block element or an inline element
Ordered lists, Unordered lists, and List Items are block level (because they start on a new line for each list item)
What HTML tag is used to link to another website?
The a tag with the href attribute
What is an absolute URL?
An absolute URL is one that links to a specific location/domain