3/14/2022 Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
Within the html element
What is the purpose of a !DOCTYPE declaration?
To tell the browser which version of HTML the HTML document is running.
Give five examples of HTML element types.
The html element, head element, title element, body element, and the p element,
What is the purpose of HTML attributes?
To add information and functionality to an element
Give an example of an HTML entity (escape character).
The © and ® are examples of HTML entities to show the copyright and registered trademark symbols, respectively
How do block-level elements affect the document flow?
Block-level elements create a new line and a block.
Block-level elements take up the entire horizontal space of its parent element or container and the vertical space equal to the height of its content, thus creating a “block”.
How do inline elements affect the document flow?
Inline elements only take up as much space as its content takes up.
What are the default width and height of a block-level element?
Block-level elements take up the entire width of the window and they take up as much height as the content takes up.
What are the default width and height of an inline element?
The default width and height of an inline element is the amount of space taken up by the text content within the opening and closing tags.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered either with numbers, letters or roman numerals.
Unordered lists are not numbered and they are listed with bullet points, diamonds, etc.
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tag
What is an absolute URL?
An absolute URL is a link to an external source. They are the full URL name.