HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tags
Where do you put the visible content about the HTML document?
Within the body tags
Where do the head and body tags go in a valid HTML document?
Within the HTML tags, head above body
What is the purpose of the declaration?
It tells the browser what language the file is in.
Give 5 examples of HTML element types.
head body h1 p title
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
Give an exampleof an HTML entity.
The cent sign, using ¢ or ¢
How do block-level elements affect the document flow?
Block-level elements take up a new line for the entire width of that line
How do inline elements affect the document flow?
Inline elements fit within the content, and do not affect the document flow directly.
What are the default width and height of a block-level element?
Width: entire page
Height: the height of the content within the block
What are the default width and height of an inline element?
Width/Height: determined by the size of the content
What is the difference between an ordered list and an unordered list?
An ordered list begins each line with an alphanumeric character to designate the given order.
An unordered list begins each line with the same bullet, box, arrow, etc. that does not denote any order.
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
A link that directs the user to an outside resource/website.