HTML Flashcards
Where do you put non-visible content about the HTML document?
Head tag
Where do you put visible content about the HTML document?
Body tag
Where do the head and body tags go in a valid HTML document?
The opening head tag is placed between the opening html and body tags. The body tag is placed between the closing head and html tags.
What is the purpose of a Doctype declaration?
Informs browser that this is an HTML document.
Give five examples of HTML element tags.
div tag, a tag, img tag, p tag, h1 tag
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
& ®
How do block-level elements affect the document flow?
Block-level elements will always appear to start on a new line in the browser window.
How do inline elements affect the document flow?
Inline elements will always appear to continue on the same line as their neighboring elements.
What are the default width and height of a block-level element?
100% for width, auto for height.
What are the default width and height of an inline element?
Auto for width and height.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists where each item in the list is numbered. Unordered lists are lists that begin with a bullet point.
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
Contains protocols, domains, other information necessary to locate resource.