HTML Flashcards
Where do you put non-visible content about the HTML Document?
in the head element
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?
in the html element
what is the purpose of the DOCTYPE declaration?
to declare the document/code type
Give 5 examples of HTML element tags
head, body, html, p, div
What is the purpose of HTML attributes?
to give elements specific characteristics
Give an example of an HTML entity (escape character)
& + reg for registered trademark
How do block level elements affect the document flow?
By beginning on a new line every time a new one is introduced and taking up as much space as possible
How do inline elements affect the document flow?
by squeezing in between text content, or other elements and only taking as much space as needed
what are the default height and width of a block level element?
width: 100
height: auto
what are the default height and width of an inline element?
width: auto
height: auto
What is the difference between an ordered and unordered list in HTML?
ordered = numbered, in order unordered = bulleted, not in order
Is an HTML List a block or inline element?
Block
What html element is used to link to another website?
a (anchor) element
What is an absolute URL?
A path that leads outside of the original viewport/workspace to another website entirely