HTML Flashcards
Where do you put non-visible content about the HTML document?
header
Where do you put visible content about the HTML document?
body
Where do the and tags go in a valid HTML document?
the is placed b/w the and the
What is the purpose of a declaration?
To instruct the browser the version of HTML the page is written in. And ensures the webpage is parsed the same way by different browers.
Give five examples of HTML element types.
<h1></h1>
<p>
</p>
<div><a></a></div>
What is the purpose of HTML attributes?
Attributes provide additional information about elements
Give an example of an HTML entity (escape character).
(®) ==> ®
(©) ==> ©
How do block-level elements affect the document flow?
They take up a new line on the document
How do inline elements affect the document flow?
the inline element is found within the content of the block-element
What are the default width and height of a block-level element?
The default width and height depend on its parent container
What are the default width and height of an inline element?
its size depends on the width and height of the block-level content
What is the difference between an ordered list and an unordered list in HTML?
The <ol> lists its contents in numeric order whereas the </ol><ul> creates a bullet-point list </ul>
Is an HTML list a block element or an inline element?
a block element
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
a reference that directs the user to an external website