HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element or metadata
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?
In between the HTML as children and as siblings to
What is the purpose of a declaration?
To tell the browser which version of HTML
Give five examples of HTML element types.
P, Div, Head, Body, Title
What is the purpose of HTML attributes?
To provide additional information to the element and customize
Give an example of an HTML entity (escape character).
Cent sign, trademark, copyright
How do block-level elements affect the document flow?
They will be on a new line, whole width of block,
How do inline elements affect the document flow?
Continue on the same line, as much room as needed
How do inline elements affect the document flow?
Continue on the same line, as much room as needed
What are the default width and height of a block-level element?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). Width- 100% height-auto
What are the default width and height of an inline element?
takes up as much width as necessary. width/height-auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered and different elements vs bullet points
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
<a></a>
anchor
What is an absolute URL?
The url with all the information, full URL that goes in href
What is a relative URL?
Url with less information, shorthand, within own web app
How do you indicate the relative link to a parent directory?
../ file.html
How do you indicate the relative link to a child directory?
directory/file.html
How do you indicate the relative link to a grand parent directory?
directory/directory/file.html
How do you indicate the relative link to the same directory?
file.html
What is the purpose of an HTML form element?
To let HTML know information will be submitted/capture user input in a boundary
Give five examples of form control elements.
textarea, label, button, input, select,
Give three examples of type attribute values for HTML elements.
email, text, password, radio, checkbox, submit
Is an HTML input element a block element or an inline element?
inline
What are the six primary HTML elements for creating tables?
Table, table head, table body, table row, table data, table header
What are the six primary HTML elements for creating tables?
Table, table head, table body, table row, table data, table foot
What purpose do the thead and tbody elements serve?
Defines the head of columns vs body
Give two examples of data that would lend itself well to being displayed in a table.
Budgeting, data entry, inventory, stats, calendar