HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the head tags.
Where do you put visible content about the HTML document?
Inside the body tags.
Where do the head and body tags go in a valid HTML document?
Inside the html tags.
What is the purpose of a !DOCTYPE declaration?
To tell the browser what version of HTML the page is using.
Give five examples of HTML element tags.
head, title, body, h1, p tags
What is the purpose of HTML attributes?
To provide additional information for the content of an element.
Give an example of an HTML entity (escape character).
& sign, copyright sign
How do block-level elements affect the document flow?
They create a new line.
How do inline elements affect the document flow?
They appear on the same line as their neighboring elements.
What are the default width and height of a block-level element?
A Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents.
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
The items in the ordered list begin with a number.
The items in the unordered list begin with a bullet point.
Is an HTML list a block element or an inline element?
Block element.
What HTML tag is used to link to another website?
“<a>” anchor tag.</a>
What is an absolute URL?
A full web address for another site.