HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element
Where do you put visible content about the HTML document?
Within the body element
Where do the and tags go in a valid HTML document?
Between the HTML tags, head going first followed by body
What is the purpose of a declaration?
To declare the type of document we’re working with
Give five examples of HTML element types.
- head
- body
- p
- img
- h1-h6
What is the purpose of HTML attributes?
To add context and or features to an element
Give an example of an HTML entity (escape character).
Copyright ©
Registered Trademark ®
Ampersand &
How do block-level elements affect the document flow?
block-level elements start on their own line
How do inline elements affect the document flow?
Inline elements sit within a block level element and do not start on their own line
What are the default width and height of a block-level element?
The default width and height of a block-level element are of equal value to their parent element
What are the default width and height of an inline element?
The default width and height of an inline element is equal to its content
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is categorized by numbers, and an unordered list is categorized by bullets
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
When you link to a different website the absolute URL will be the full web address for the site
What is a relative URL?
When linking to another page within the same website we do not need to specify the domain name in the URL, instead we can use a shorthand
What is the purpose of an HTML form element?
To implement a form within the webpage to either receive or upload data
Give five examples of form control elements.
input, label, select, option, form
Give three examples of type attribute values for HTML elements.
type, name, value
Is an HTML element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
table, thead, tbody, th, tr, td
What purpose do the thead and tbody elements serve?
Distinguishes the head of the table from the main content of the table, also assists people using screen reader, and allows for CSS styling.
Give two examples of data that would lend itself well to being displayed in a table.
Organizing statistics from sports, and a variety of data from users.