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?
Between the html tags.
head and body tags are siblings
What is the purpose of the !DOCTYPE declaration?
To indicate the HTML version
Give 5 examples of HTML element tags.
P Span img h1 h2
What is the purpose of HTML attributes?
provides additional information about elements.
give an example of an HTML entity (escape character).
& amp = ampersand (&)
no space between & and amp
How do block-level elements affect the document flow?
Causes a line break.
How do inline elements affect the document flow?
Continues on the same line.
What are the default width and height of a block-level element?
Width = 100% of the parent element's width Height = tall as its contents
What are the default width and height of an inline element?
Only takes up as much width and height as necessary (Auto)
What is the difference between an ordered list and an unordered list in HTML?
Ordered list = Items are numbered to indicate there is an order
Unordered = Items begin with a bullet point or other symbol
Is an HTML list a block element or an inline element?
BLOCK
What HTML tag is used to link to another website?
anchor tags
What is an absolute URL?
It is the full address.
Used to link to an external website.