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 do the <head> and <body> tags go in a valid HTML document?
Between opening and closing HTML tags
What is the purpose of a <!DOCTYPE> declaration?
Inform browser what version of HTML to use
Give five examples of HTML element types.
<body>, <img></img>, <p> <span>, <title>
</title></span></p></body>
What is the purpose of HTML attributes?
To provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
Registered ®
How do block-level elements affect the document flow?
Start on a new line and take up width of the parent element container
How do inline elements affect the document flow?
Shares space and continues on same line as neighboring elements
What are the default width and height of a block-level element?
the height of a block element is the height of the content, and the width is the length of the page: width block 100%
What are the default width and height of an inline element?
The height of an inline element is the height of the content.
The width of an inline element is the width of the content. width and height auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list lists where each item in the list is numbered. Unordered lists begin with a bullet point
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
<a href=” ”></a>
What is an absolute URL?
Full web address of the site including protocol (HTTPS, HTTP)