HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head. It holds the metadata
Where do you put the visible content about the HTML document?
In the body. It holds what will be displayed on the page.
Where do the head and the body tags go in a valid HTML document?
In the HTML element.
What is the purpose of a !DOCTYPE declaration?
Tells the browser what sort of document it will be encountering (HTML 4 or 5, etc.)
Give 5 examples of HTML element types.
- head
- body
- p
- img
- h1
What is the purpose of HTML attributes?
They give additional info about the element they are on
Give an example of HTML entity (escape character).
Ampersand or Copyright
How do block-level elements affect the document flow?
Block-level elements appear on a separate line and takes up the entire line its on
How do inline elements affect the document flow?
Inline elements affect the text in the line and does not create a new line for a new block
What are the the default width and height of a block-level element?
100% (width) by auto (height)
What are the default width and height of an inline-element?
Auto (width) by auto (height)
What is the difference between and ordered list and an unordered list in HTML?
Ordered lists are bulleted with numbers
Unordered lists are bulleted with just bullet points
Is an HTML list a block element or an inline element?
HTML lists are block elements
What HTML tag is used to link to another website?
Anchor tag (a href= “ “)
What is an absolute URL?
Links to another page outside of our current document