HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element, the head element stores metadata(information about information)
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 the opening the tag for the html element and the closing tag for the html element
What is the purpose of a doctype declaration?
Doctype declarations are to declare what kind of document version it pertains to..
Give five examples of HTML element types.
Html, body, head, title, img
What is the purpose of HTML attributes?
To give additional information about the element
Give an example of an HTML entity (escape character).
&trade ; for trademark
How do block-level elements affect the document flow?
Block level elements start a new line and take up the entire width
How do inline elements affect the document flow?
Inline elements appear on the same line as neighboring elements
What are the default width and height of a block-level element?
Entire horizontal space and vertical space is height of the contents or also know as auto
What are the default width and height of an inline element?
Height is height of the content or auto, width is the width of the content or auto
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered, and unordered list has bullet points
Is an HTML list a block element or an inline element?
Html list is a block element
What HTML tag is used to link to another website?
The anchor tag
What is an absolute URL?
An absolute url is when a url takes you to whole new website and has domain / https protocol