HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the head tags.
Where do you put visible content about the HTML document?
In the body tags.
Where do the head and body tags go in a valid HTML document?
In the html tags.
What is the purpose of a !DOCTYPE declaration?
Tells browser which version of html it is using.
What is the purpose of HTML attributes?
To provide additional info about the contents of an element/tag.
Give five examples of HTML element tags.
a, b, p, h1, img, body, head
Give an example of an HTML entity (escape character).
® ©
How do block-level elements affect the document flow?
Always start on a new line.
How do inline elements affect the document flow?
Do not force a new line to begin; stays within the same line.
What are the default width and height of a block-level element?
width: 100%
height: auto
Always takes up the full width available
What are the default width and height of an inline element?
width: auto
height: auto
Inline only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use numbers. Unordered lists use bullets.
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?
a tag
What is an absolute URL?
An absolute URL is a ‘full’ URL or one that contains the entire address of the page.