HTML 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 to the <head> and <body> tags go in a valid HTML document?
Between the <html> and </html> tags, in the <html> element
What is the purpose of a <!DOCTYPE> declaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element types.
<body>, <head>, <title>, <h1>, <p>, <strong>, <em>, <img></img>
</em></strong></p></h1></title></head></body>
What is the purpose of HTML attributes?
To tell us more about the content of the element
Give an example of an HTML entity (escape character).
<, >, &, ‘,, ™ , ® , ©
How do block-level elements affect the document flow?
They each start on a new line
How do inline elements affect the document flow?
The continue on the same line
What are the default width and height of a block-level element?
The width is the width of the whole line and the height is the height of its content
What are the default width and height of an inline element?
The width and height are the width and height of its content
What is the difference between and ordered list and an unordered list in HTML?
Each item in an ordered list is numbered while each item in an unordered list begin with a bullet point rather than characters that indicate order
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 URL that visits a specific page. It starts with the domain name for that site and can be followed by the path to a specific page