Quiz Questions Flashcards
Where do you put non-visible content about the HTML document?
. It’s about the meta information
head element
Where do you put visible content about the HTML document?
The body tag of the HTML document
Where do the and tags go in a valid HTML document?
The tag will usually go right after the tag and before the tag. The tag will go after the tag.
What is the purpose of a declaration?
The purpose is to tell a browser which version of HTML the page is using
Give five examples of HTML element types.
, <li>, <ul>, ,
</ul></li>
What is the purpose of HTML attributes?
Provides additional information about the contents of an element
Give an example of an HTML entity (escape character).
< less than <
> greater than >
How do block-level elements affect the document flow?
Makes certain elements start on a new line in the browser window
How do inline elements affect the document flow?
Makes it appear to continue on the same line as their neighboring elements
What are the default width and height of a block-level element?
Expands to a width of 100% of its parent container and the height would be according to the height of the content
What are the default width and height of an inline element?
The height and width of the content
What is the difference between an ordered list and an unordered list in HTML?
Ordered: numbered
Unordered: 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?
Anchor tag
What is an absolute URL?
Linking to a different website / a full web address for the site
What is a relative URL?
When linking to other pages within the same site
How do you indicate the relative link to a parent directory?
use ../ to indicate the folder above the current one, then follow it with the file name
example: <a>Home</a>
How do you indicate the relative link to a child directory?
use the name of the child folder, followed by a forward slash, then the file name
example: <a></a>
How do you indicate the relative link to the same directory?
just use the file name (nothing else is needed)
example: <a>Reviews</a>
How do you indicate the relative link to a sibling directory?
use ../ to indicate the folder above the current one, then with a forward slash, write the sibling folder, then write the file name
example: <a>Home</a>
How do you indicate the relative link to a grand parent directory?
repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name
example: <a>Home</a>
What is the purpose of an HTML form element?
collect data from users
Give five examples of form control elements.
text input
password input
radio buttons
checkboxes
dropdown boxes
Give three examples of type attribute values for HTML elements.
type=”image” when you want to use an image for the submit button
type=”submit” used to send a form to the server
type=”file” creates a box that looks like a text input followed by a browse button to select a file from their cmp and upload it