HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tags
Where do you put visible content about the HTML document?
Within the body
Where do the and tags go in a valid HTML document?
They go within the HTML tags
What is the purpose of a declaration?
Notify browser the type of doc and the version of HTML
Give five examples of HTML element tags.
Body html a p div
What is the purpose of HTML attributes?
Give additional information on the tags
«a>a</a> href=”…” style=”color:red;”>test«a>a</a>>
Give an example of an HTML entity (escape character).
<a>&</a>copy; = © <a>&</a>reg; = ®
How do block-level elements affect the document flow?
Block elements stand alone and create line breaks
How do inline elements affect the document flow?
Inline elements will stay right where they are, and will not cause a break in the text
What are the default width and height of a block-level element?
Width: full available space
Hight: amount needed to show text, unless restricted
What are the default width and height of an inline element?
It would auto-adjust to the width and height of the content around it
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists have correlating numbers, which give them a sequence
Unordered lists are bullet points with no indication of sequencing
Is an HTML list a block element or an inline element?
It is a block element
What HTML tag is used to link to another website or other location?
Anchor tag with href
«a>a</a> href=”link.com”>link«a>a</a>>
What is an absolute URL?
Absolute URLs give the direction to the HTML page from the very beginning.
This allows there to be no confusion or issues for the source of the link