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?
Within the < html > tags.
What is the purpose of a < !DOCTYPE > declaration?
To tell the browser what kind of doc it is.
What is the purpose of HTML attributes?
To provide more information about the elements.
Give an example of an HTML entity (escape character).
© for Copyright
How do block-level elements affect the document flow?
Will take up the whole line.
How do inline elements affect the document flow?
Will only take up as much space as necessary, will share the line with other elements.
What are the default width and height of a block-level element?
Width: 100%; Height: As much as necessary.
What are the default width and height of an inline element?
Width: As much as necessary; Height: As much as necessary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use an order, for example numbers; unordered lists are not ordered and use bullet points.
Is an HTML list a block element or an inline element?
Block.
What HTML tag is used to link to another website?
< a >
What is an absolute URL?
To an external website. The full path.
What is a relative URL?
To a different part of the same website. Partial path.