HTML Flashcards
Where do you put non-visible content about the HTML document?
The non-visible content for the HTML document goes in the head tag.
Where do you put visible content about the HTML document?
The visible content about the HTML document goes into the body tag.
Where do the .head. and .body. tags go in a valid HTML document?
The head tag goes at the top of the HTML document after the tag is declared. The body tag comes after the closing tag of the element.
What is the purpose of a .!doctype. declaration?
The purpose of the declaration is to tell the browser what version of html is used.
Give five examples of HTML element tags.
Body, head, title, <h1>, </h1><p></p>
What is the purpose of HTML attributes?
Attributes provide additional information for an element. Two parts: a name and a value.
Give an example of an HTML entity (escape character).
Copy right symbol (©)
Registered trademark (®)
Trademark (™)
How do block-level elements affect the document flow?
Block-level elements can only begin on new lines. Block-level elements only appear within a .
How do inline elements affect the document flow?
In-line elements can start anywhere in a line.
In-line elements can be used within a block-level element.
What are the default width and height of a block-level element?
.
What are the default width and height of an inline element?
.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list numbers each item in the list. An unordered list just displays each item with a bullet point.
Is an HTML list a block element or an inline element?
A HTML list is a block element since it can only start on a new block.
What HTML tag is used to link to another website?
The anchor tag followed by the href attribute is used to link to another website.
What is a relative URL?
A relative URL refers to a page on the same site. If the file is in the same directory, you just put the name of the file. If the file is in a parent directory, you put ../ before the name of the file.