HTML Flashcards
Where do you put non-visible content about the HTML document?
In the <head> element
Where do you put visible content?
In the <body> element
Where do the <head> and <body> tags go in a valid HTML document?
In the <html> element
What is the purpose of a <!DOCTYPE> declaration?
To format the web browser for HTML
Give five examples of HTML element types?
<head>, <title>, <body>, <h1>, <p>
</p></h1></body></title></head>
What is the purpose of HTML attributes?
To provide more information for an element
Give an example of an HTML entity (escape character).
Copyright / trademark symbol
How do block-level elements effect the document flow?
Block-level elements start on a new line
How do inline elements effect the document flow?
Inline elements change the text in the same line of code and stay within the line
What are the default width and height of a block-level element?
Whatever the parent container is (can be changed)
What are the default width and height of an inline element?
Whatever the content is (can’t be changed)
What is the difference between an ordered list and an unordered list in HTML?
Ordered: numbered lists in steps or specific order
Unordered: uses bullet points, no order
Is an HTML list a block element or inline element?
Block element
What is the difference between and ordered list and an unordered list in HTML?
Ordered list: has a certain order to it
Unordered list: has no order, uses bullet points
Is an HTML list a block element or an inline element?
Block element