HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head.
Where do you put visible content about the HTML document?
In the body.
Where do the and tags go in a valid HTML document?
goes after !DOCTYPE and the opening tag and closes before the opening body tag. The starts after the closing tag and closes before the closing tag.
What is the purpose of a declaration?
To declare which version of HTML is being used.
Give five examples of HTML element tags.
<p>, <strong>, , <h1>, <div></div></h1></strong></p>
What is the purpose of HTML attributes?
To add more information about the element.
Give an example of an HTML entity (escape character).
©
How do block-level elements affect the document flow?
They take an entire line on the webpage.
How do inline elements affect the document flow?
They only take up as much room as there is content.
What are the default width and height of a block-level element?
Width: 100% / Height: Auto
What are the default width and height of an inline element?
Width: Auto / Height: Auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list (ol) lists items such as 1. , 2. , 3 . etc. Unordered lists (ul) lists items as bullet points.
What HTML tag is used to link to another website?
<a> tag</a>
What is an absolute URL?
Includes domain name.
What is a relative URL?
Navigation within the same domain.