Quiz Questions Flashcards
(366 cards)
Where do you put non-visible content about the HTML document?
In the header element
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?
The header element goes below the html tag, and the body goes below the header tag.
What is the purpose of a declaration?
Instruction to the browser on which version of HTML the page is written in
Give five examples of HTML element tags.
- h1
- p
- div
- body
- html
What is the purpose of HTML attributes?
Attributes control an elements behavior
Give an example of an HTML entity (escape character).
® &
How do block-level elements affect the document flow?
Take up all the width available
Starts on a new line
Has a top and bottom margin by default
How do inline elements affect the document flow?
Only takes up as much width as necessary
Does not start on a new line
What are the default width and height of a block-level element?
The width is the entirety of the available space on the page
The height is the height of whatever content is in the element
What are the default width and height of an inline element?
The default width and height are based on the content that reside in the element
What is the difference between an ordered list and an unordered list in HTML?
An ordered list uses numbers to form a list that has a specific order while an unordered list uses bullet points and does not have a specific order to the elements
Is an HTML list a block element or an inline element?
They are block elements
What HTML tag is used to link to another website?
an a element tag
What is an absolute URL?
Uses a http or https and links to an outside website
What is a relative URL?
Links to a page within the same directory
How do you indicate the relative link to a parent directory?
../ (Parent directory)
How do you indicate the relative link to a child directory?
/ (folder) / (child directory)
How do you indicate the relative link to a grand parent directory?
../../(Grandparent directory)
How do you indicate the relative link to the same directory?
./(same directory)
What is the purpose of an HTML form element?
Collect data from a user or visitor of your site
Give five examples of form control elements.
input label select text area button
Give three examples of type attributes for HTML input elements.
radio
email
text
Is an HTML input element a block element or an inline element?
Inline