HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tags
Where do you put the visible content about the HTML document?
Within the body tags
Where do the head and body tags go in a valid HTML document?
Within the HTML tags, head above body
What is the purpose of the declaration?
It tells the browser what language the file is in.
Give 5 examples of HTML element types.
head body h1 p title
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
Give an exampleof an HTML entity.
The cent sign, using ¢ or ¢
How do block-level elements affect the document flow?
Block-level elements take up a new line for the entire width of that line
How do inline elements affect the document flow?
Inline elements fit within the content, and do not affect the document flow directly.
What are the default width and height of a block-level element?
Width: entire page
Height: the height of the content within the block
What are the default width and height of an inline element?
Width/Height: determined by the size of the content
What is the difference between an ordered list and an unordered list?
An ordered list begins each line with an alphanumeric character to designate the given order.
An unordered list begins each line with the same bullet, box, arrow, etc. that does not denote any order.
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?
A link that directs the user to an outside resource/website.
What is a relative URL?
A link that directs the user to a different page within the same website.
What is the purpose of an HTML form element?
represents a document section containing interactive controls for submitting information
Give five examples of form control elements.
input select textarea option button
Give three examples of type attribute values for HTML elements.
radio
checkbox
text
Is an HTML input element a block element or an inline element?
inline-block element (inline, but can be resized as needed)
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?
thead and tbody elements provide document flow as well as semantic information on the given table. thead also comes with default styles in certain browsers to designate the section as a header.
Give two examples of data that would lend itself well to being displayed in a table.
Sports statistics
Expense reports in accounting