HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the head and body tags go in a valid HTML document?
Between the HTML & Body tags
What is the purpose of a declaration?
Instructs the browser on the HTML version
Give five examples of HTML element tags.
head, title, body, h1, h2
What is the purpose of HTML attributes?
Provides functionality to certain element types
Give an example of an HTML entity (escape character).
Ampersand trade;
How do block-level elements affect the document flow?
Not courteous. Always starts on a new line and takes up the full width out to the left and right as far as it can
How do inline elements affect the document flow?
Courteous. An inline element does not start on a new line and only takes up as much width as necessary.
What are the default width and height of a block-level element?
100% of its parent container. It will also expand by default to whatever height it needs to have
What are the default width and height of an inline element?
Exactly the height and width of the content
What is the difference between an ordered list and an unordered list in HTML?
1) Unordered list: bullets
2) Ordered list: numbers/letters
Is an HTML list a block element or an inline element?
Stacked manner: Block level
What HTML tag is used to link to another website?
The anchor tag with the href attribute
What is an absolute URL?
External resource