HTML Flashcards
Where do you put non-visible content about the HTML document?
Non visible content goes in between the head element.
Where do you put visible content about the HTML document?
Visible content goes within the body element.
Where do the head and body tags go in a valid HTML document?
The head and body tags go in between the html tag.
What is the purpose of a doctype declaration?
The doctype declaration is utilized to indicate what version of html is being used.
Give five examples of HTML element types.
- Headings
- Paragraphs
- img
- Span
- Body
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
Copyright symbol - © - & copy ;
How do block-level elements affect the document flow?
They occupy the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents.
How do inline elements affect the document flow?
Inline elements do not force a new line to begin in the document flow.
What are the default width and height of a block-level element?
By default, a block level element expands to a width of 100% of its parent container. Vertical space equal to the height of its content.
What are the default width and height of an inline element?
Takes up as much space as necessary. (auto)
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered while unordered lists begin with bullet points.
Is an HTML list a block element or an inline element?
A block element.
What HTML tag is used to link to another website?
The a tag.
What is an absolute URL?
A full web address.