HTML Flashcards
Where do you put non-visible content about the HTML document?
Head
Where do you put visible content about the HTML document?
Body
Where do the head and body tags go in a valid HTML document?
Nested as a child of the HTML element.
What is the purpose of a !DOCTYPE declaration?
To let the browser know what type of documentation to display.
Give five examples of HTML element tags.
head, body, html, div, span
What is the purpose of HTML attributes?
To give more information about an element; makes it special or unique from other elements.
Give an example of an HTML entity (escape character).
trademarks, copyrights, greater than, less than, etc
How do block-level elements affect the document flow?
They start on a new line and take up the entire line.
How do inline elements affect the document flow?
They only take up the space they need and can remain on the same line.
What are the default width and height of a block-level element?
The default width is 100% of the viewpoint and height is usually set to auto (how much it needs).
What are the default width and height of an inline element?
Default width and height are measured by exactly how much they need.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list displays in a numbered order. An unordered list is displayed with bullet points.
Is an HTML list a block element or an inline element?
It is a block element.
What HTML tag is used to link to another website?
With an a tag.
What is an absolute URL?
When the value of href(attribute) is linked to another page in another website.