HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in head element
Where do you put visible content about the HTML document?
Visible content goes into the body element
Where do the head and body tags go in a valid HTML document?
in the HTML element
The head and body tags are children of the html element
What is the purpose of a !DOCTYPE declaration?
Tells the browser what version of HTML the page is using
Uses the most recent version
Give five examples of HTML element types
body, head, img, h1, span…
What is the purpose of HTML attributes?
Provide additional info about contents of an element
Give an example of an HTML entity (escape character).
® ALSO ™
Registered trademark
How do block-level elements affect the document flow?
Make text appear on a new line in browser window
How do inline elements affect the document flow?
Continue on the same line as other neighboring elements
What are the default width and height of a block-level element?
Entire horizontal space of its parent element (container)
Vertical space = the height of its contents - auto
What are the default width and height of an inline element?
Only occupy space bounded by the tags defining the element
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists - each item is numbered ol
Unordered- begins with bullet point ul
Is an HTML list a block element or an inline element?
block element
Starts a new line for the list
What HTML tag is used to link to another website?
a ;
will be taken to the page specified in the href attribute
What is an absolute URL?
Stands for Uniform Resource Locator
starts with
the domain name for that site, and can be followed by the path to a specific page
What is a relative URL?
shorthand version of absolute URLs because you do not need to specify the domain name
How do you indicate the relative link to a parent directory?
Indicates the folder one above the current one
../ index.html
It is the folder holding more folders
How do you indicate the relative link to a child directory?
Children folders are within the main parent folder
Child folder name / file name
yada/yadayada.html
How do you indicate the relative link to a grand parent directory?
Repeating the ../ until reaching the correct folder
../../yada.html
How do you indicate the relative link to the same directory?
Nothing else is needed, just the file name
yada.html
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.
text input, checkboxes, radio buttons, submit buttons, file upload,
Give three examples of type attribute values for HTML input elements.
Text, password, radio
Is an HTML input element a block element or an inline element?
Inline element
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody
What purpose do the thead and tbody elements serve?
thead - defines set of rows defining the head of the columns of the tables
tbody - contains set of table row elements indicating they comprise of the body of the table
Give two examples of data that would lend itself well to being displayed in a table.
Items and price
schedules