HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content about the HTML document goes inside of the head element.
Where do you put visible content about the HTML document?
Visible content about the HTML document goes inside of the body element.
Where do the head and body tags go in a valid HTML document?
The head and body tags of a valid HTML document go inside the html tags.
What is the purpose of a !DOCTYPE declaration?
The purpose of a !DOCTYPE declaration is to inform the browser as to what type of document it is reading.
Give five examples of HTML element tags.
head, body, div, h1, and p are all examples of HTML element tags.
What is the purpose of HTML attributes?
HTML attributes provide additional information about HTML elements.
Give an example of an HTML entity (escape character).
An example of an HTML entity (escape character) is © which is the copyright symbol.
How do block-level elements affect the document flow?
A block-level element affects the document flow by always starting a new line and taking up the full width available.
How do inline elements affect the document flow?
An inline element does not start a new line and only takes up as much width as necessary.
What are the default width and height of a block-level element?
The default width of a block-level element is the entire horizontal space from left-to-right. The default height of a block-level element is equal to the height of its content.
What are the default width and height of an inline element?
The default width of an inline element is the space bounded by the tags defining element. The default height of an inline element is equal to the height of its content.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list displays list items numbered sequentially, whereas an unordered list displays list items with a bullet point preceding each item.
Is an HTML list a block element or an inline element?
An HTML list is a block-level element.
What HTML tag is used to link to another website?
An a tag is used to link to another website.
What is an absolute URL?
An absolute URL contains all the information necessary to locate a resource and usually begins with HTTPS, HTTP, or WWW.