HTML Quiz Questions Flashcards
Where do you put non-visible content about the HTML document?
The head element
What is the purpose of a doctype declaration?
It declares the type of HTML version
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).
Ampersand: &
Copyright symbol: ©
What three HTML elements do you use to build a description list?
description term, description definition, description list
Give five examples of HTML element tags.
Answers vary
What is the difference between an ordered list and an unordered list in HTML?
An ordered list in numbered
An unordered list is bulleted
Where do you put visible content about the HTML document?
The body element
Where do the head and body tags go in a valid HTML document?
In the HTML element
What is an absolute URL?
A URL with a full domain name
What is a relative URL?
A URL with only folder names
What other ways can we use an anchor tag?
Navigating to a different part of the web page
How do you indicate the parent folder in a path?
With a ../
How do you indicate the child folder in a path?
With a /childFolderName
How do you indicate the grand parent folder in a path?
With a ../../
How do you indicate the current folder in a path?
Use the file name
What are the six primary HTML elements for creating tables?
- table
- table row
- table data
- t head
- t body
- table heading
What purpose do the thead and tbody elements serve?
They help with labeling and screen readers can see them
Give two examples of data that would lend itself well to being displayed in a table.
Anything with data
Why are forms useful?
They are useful to receive data
What attribute do you have to match between a label and an input?
For and ID
What type of input allows you to select multiple items in a dropdown?
Select element
What is the action of a form?
It is the URL for the page on the server that will receive the information in the form when it is submitted.
What is the purpose of an HTML form element?
To get data
Give five examples of form control elements.
- select
- input (has a bunch)
- textarea
- button
- form
Give three examples of type attributes for HTML elements.
- radio
- password
- text
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
Semantics
What factors contribute to a well-designed HTML document?
Semantics and organization
How do block-level elements affect the document flow?
creates a new line for itself, takes as much space as needed
How do inline elements affect the document flow?
Inline takes as little space as it needs to and stay on the same line
What are the default width and height of a block-level element?
width would be 100% and height would be auto
What are the default width and height of an inline element?
width auto and height is auto
What accessibility considerations must be considered when choosing HTML elements?
Accommodating for screen readers