HTML Flashcards
Where do you put non-visible content about the HTML document?
Head
Where do you put visible content about the HTML document?
Body
Where do the and tags go in a valid HTML document?
The head goes above the body within the HTML element.
What is the purpose of a declaration?
To tell the browser which version of HTML is being used.
Give five examples of HTML element tags.
head, body, li, div, p, footer, header, h1
What is the purpose of HTML attributes?
Attributes are names and values that give extra information about the element.
Give an example of an HTML entity (escape character).
Ampersand and trademark, greater-than and less-than
How do block-level elements affect the document flow?
Each starts on a new line and occupies the entire space of that line.
How do inline elements affect the document flow?
They don’t, because they don’t start on a new line.
What are the default width and height of a block-level element?
A block-level element takes up the entire width of its parent element.
What are the default width and height of an inline element?
Inline default is the width of the content between the open and close.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are ordered, unordered arent.
Is an HTML list a block element or an inline element?
Block
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
Absolute URLs take you away from the current domain
What is a relative URL?
Relative URLs help you navigate between pages of the current app/website
How do you indicate the relative link to a parent directory?
../ParentDir
How do you indicate the relative link to a child directory?
/ChildDir
How do you indicate the relative link to a grandparent directory?
../../GrandParentDir
How do you indicate the relative link to the same directory?
say the file name and to link to the same page it’s just “page.html”
What is the purpose of an HTML form element?
to hold form control elements
Give five examples of form control elements.
textarea, select, options, inputs, button, label
Give three examples of type attributes for HTML elements.
password, text, radio, checkbox
Is an HTML element a block element or an inline element?
Inline
What are the six primary HTML elements for creating tables?
table heading (th) table row (tr), table, table data (td), thread (thead), table body (tbody), table footer (tfooter)
What purpose do the thead and tbody elements serve?
To make it easier to see which columns the data are in when viewing a large table.
Give two examples of data that would lend itself well to being displayed in a table.
balance sheets, dates, schedules