HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element or metadata
Where do you put visible content about the HTML document?
In the body element
Where do the and tags go in a valid HTML document?
In between the HTML as children and as siblings to
What is the purpose of a declaration?
To tell the browser which version of HTML
Give five examples of HTML element types.
P, Div, Head, Body, Title
What is the purpose of HTML attributes?
To provide additional information to the element and customize
Give an example of an HTML entity (escape character).
Cent sign, trademark, copyright
How do block-level elements affect the document flow?
They will be on a new line, whole width of block,
How do inline elements affect the document flow?
Continue on the same line, as much room as needed
How do inline elements affect the document flow?
Continue on the same line, as much room as needed
What are the default width and height of a block-level element?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). Width- 100% height-auto
What are the default width and height of an inline element?
takes up as much width as necessary. width/height-auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered and different elements vs 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></a>
anchor