HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element. It will appear in the title bar (or tabs).
Where do you put visible content about the HTML document?
Within the body element. It will appear in the browser window.
Where do the head and body tags go in a valid HTML document?
They are both within the html element and the head tag is first and the body tag is next.
What is the purpose of a !DOCTYPE declaration?
To tell the browser which version of HTML the page is using. It also helps render the page correctly.
Give five examples of HTML element tags.
head, meta, title, link, and body.
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© - Copyright Symbol
How do block-level elements affect the document flow?
These elements will always start on a new line.
How do inline elements affect the document flow?
These elements will always continue on the same line as their neighboring elements.
What are the default width and height of a block-level element?
The full width of any containing element or the entire page and the height is dictated by the content.
What are the default width and height of an inline element?
The width and height takes up only as much as the content.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered. An unordered list has bullet points.
Is an HTML list a block element or an inline element?
A block element because it starts on a new line.
What HTML tag is used to link to another website?
Anchor Tag
What is an absolute URL?
The full web address starting with http.