HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tags (or within the head element)
Where do you put visible content about the HTML document?
Within the body tags
Where do the head and body tags go in a valid HTML document?
Within the html tags
What is the purpose of a declaration?
The declaration defines that this document is an HTML5 document
Give five examples of HTML element types.
head, body, img, p, a, title
What is the purpose of HTML attributes?
Attributes provide additional information about elements
Give an example of an HTML entity (escape character).
& = & amp; (Without the space, but the text disappears otherwise)
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary. It continues on the same line as their neighboring elements.
What are the default width and height of a block-level element?
Takes up the full width available, height of the content.
What are the default width and height of an inline element?
It only takes up as much width and height as necessary (it’s as big as the content).
What is the difference between an ordered list and an unordered list in HTML?
In an unordered list the list items will be marked with bullets (small black circles) by default while in and ordered list items will be marked with numbers.
Is an HTML list a block element or an inline element?
It’s a block element
What HTML tag is used to link to another website?
The anchor tag
What is an absolute URL?
The full web address for the website