HTML Flashcards
HTML Skeleton
Where do you put non-visible content about the HTML document?
In the head element.
HTML Skeleton
Where do you put visible content about the HTML document?
Within the body element. (does not mean everything in the body element is visible. ex) <div> element)
</div>
HTML Skeleton
Where do the head and body tags go in a valid HTML document?
Between opening and closing tags for HTML element.
HTML Skeleton
What is the purpose of a declaration?
To tell what version of HTML is declared.
HTML Syntax
Give five examples of HTML element types.
footer, main, header, mark, p, img
HTML Syntax
What is the purpose of HTML attributes?
Attributes provide additional information about the content of an element.
HTML Syntax
Give an example of an HTML entity (escape character).
< : less-than sign (& l t ; )
> : greater-than sign (& g t ;)
HTML Block and Inline
How do block-level elements affect the document flow?
A block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents. The block-level element starts on a new line.
HTML Block and Inline
How do inline elements affect the document flow?
Inline element allows adjacent element in inline (Share with other inline elements).
HTML Block and Inline
What are the default width and height of a block-level element?
Default width is 100% and height is auto.
HTML Block and Inline
What are the default width and height of an inline element?
The default width and height of an inline element are auto.
HTML Lists
What is the difference between an ordered list and an unordered list in HTML?
The ordered list is in number and unordered list is in a bullet point.
HTML Lists
Is an HTML list a block element or an inline element?
A block element.
HTML Links
What HTML tag is used to link to another website?
a element
HTML Links
What is an absolute URL?
The absolute URL is when you link to a different website and starts with the domain name for that site.