HTML Flashcards
Where do you put non-visible content about the HTML document?
In the Head 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?
Within the HTML Element
What is the purpose of a declaration?
Do declare what HTML element it is
Give five examples of
HTML element tags.
h1 , paragraph, body, head, html are all elements
What is the purpose of HTML attributes?
Giving it context
Give an example of an HTML entity (escape character)
Ampersand and blank ;
What is the difference between an ordered list and an unordered list in HTML?
order is number and unordered is not
What three HTML elements do you use to build a description list?
DL - Definition Lists
DT - Definition Term
DD - Definition Description
What is an absolute URL?
The whole path/
https://www.example.com
What is a relative URL?
The local page
What other ways can
we use an anchor tag?
Attach to a word or phase.
Organization
How do you indicate the parent folder in a path?
Use . . / to indicate the folder
How do you indicate the child folder in a path?
Name of child folder then forward slash
file name
How do you indicate the grand parent folder in a path?
Use child folder forward slash then grand child folder followed by another forward slash then the file name
How do you indicate the current folder in a path?
Use the file name
What are the six primary HTML elements for creating tables?
TB , TR , TH , TBody , Table , THead elements
What purpose do the thead and tbody elements serve?
Are used to group table rows into logical sections based on their content
Give two examples of data that would lend itself well to being displayed in a table.
Anything on an excel sheet, schedule
Why are forms useful?
To receive data
What attribute do you have to match between a label and an input?
input for text and label is the name
What type of input allows you to select multiple items in a dropdown?
Devices
What is the action of a form?
defines the location (URL) where the forms data should be sent
What is the purpose of an HTML form element?
Input information from the user
Give five examples of form
control elements.
text , radio , checkboxes,
drop-down , area text
Give three examples of type attributes for HTML elements.
text , password , radio
Why would we choose specific element types when we have elements such as div
and span
which can be used for anything?
div identify blocklevel sections
span is used to ID inline
What factors contribute to a well-designed HTML document?
HTML Doc
How do block-level elements affect the document flow?
it gives it structure
How do inline elements affect the document flow?
appears in the same line as neighboring element
What are the default width and height of a block-level element?
its the height of the context
What are the default width and height of an inline element?
They dont have a default
What accessibility considerations must be considered when choosing HTML elements?
Screen readers