HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the head element
Where do you put visible content about the HTML document?
Inside the body element
Where do the head and body tags go in a valid HTML document?
Inside the html element
head and body are siblings
What is the purpose of a !DOCTYPE declaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element tags.
head, body, p, h1, div
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
Less-than sign <
Copyright symbol ©
Registered trademark ®
How do block-level elements affect the document flow?
Block level elements will always appear to start on a new line in the browser window
How do inline elements affect the document flow?
Inline elements will always appear to continue on the same line as their neighbouring elements
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
width: 100%
height: auto
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary
width: auto
height: auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list is a list where each item in the list in numbered and unordered list is a list that begin with a bullet point
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Links are created using the anchor tag
What is an absolute URL?
An absolute URL starts with the domain name for that site, and can be followed by the path to a specific page