HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the head tags/head element
Where do you put visible content about the HTML document?
In between the body tags/body element
Where do the and tags go in a valid HTML document?
In between the element
What is the purpose of a declaration?
To tell the browser what kind of HTML document to load
Give five examples of HTML element types.
< p >< /p >< h1 > < /h1 >< h2 > h2 >< h3 > < /h3 >< h6> < img > h6>
What is the purpose of HTML attributes?
They define additional characteristics or properties of the HTML element.
Give an example of an HTML entity (escape character)
& –> &
> –> >< –> <
How do block-level elements affect the document flow?
They start on a new line and take up the full available width
How do inline elements affect the document flow?
Do not start on a new line
What are the default width and height of a block-level element?
Width: 100% (of its parent container)
Height: Auto (fits its contents)
What are the default width and height of an inline element?
Width: Auto
Height: Auto
(width and height are dependent on the content)
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered by default. Sequential list.
And unordered list is bullet points by default. Collection of stuff.
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
< a> (anchor element)
What is an absolute URL?
A url that contains the protocol and the domain