HTML Flashcards
What is the difference between an ordered list and an unordered list in HTML?
Unordered list means a bulleted list, and ordered list means a numbered list.
What three HTML elements do you use to build a description list?
Description list, description term, and description definition.
How do you indicate the parent folder in a path?
dot dot forward-slash (../), then file name
How do you indicate the child folder in a path?
name of folder, then forward-slash, then file name
How do you indicate the grand parent folder in a path?
dot dot forward-slash x2 (../../), then file name
How do you indicate the current folder in a path?
file name
Give five examples of HTML element tags.
p, h1, a, html, body, title
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
(&)
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
What is the purpose of a !DOCTYPE declaration?
To declare what type of document the computer will read
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr, th, td
What purpose do the thead and tbody elements serve?
thead contains the table head information, tbody contains the table body information
Give two examples of data that would lend itself well to being displayed in a table.
Any data on a spreadsheet
What is an absolute URL?
A link to a different website
What is a relative URL?
A link to a page within the website
Why are forms useful?
Forms allow to collect and store data input from users
What attribute do you have to match between a label and an input?
For and id
What type of input allows you to select multiple items in a dropdown?
select, and option goes inside the select element
What is the action of a form?
The destination the data is going to
What is the purpose of an HTML form element?
allows you to collect information from visitors to your site
Give five examples of form control elements.
text input, password input, text area, radio button, checkbox, drop-down list box, submit button
Give three examples of type attributes for HTML elements.
text, radio, checkbox, password
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
Element types help differentiate content for accessibility
What factors contribute to a well-designed HTML document?
SEO, correct functionality with elements
How do block-level elements affect the document flow?
with a newline both before and after the element
How do inline elements affect the document flow?
only occupy the space bounded by the tags defining the element
What are the default width and height of a block-level element?
width is 100% height is auto
What are the default width and height of an inline element?
width and height are auto
What accessibility considerations must be considered when choosing HTML elements?
using elements like emphasize or strong instead of italicize or bold
What is the initial display property of divs?
block
What is the difference between display: none and visibility: hidden?
display none element is hidden and removed from doc visibility hidden makes element invisible but still takes up space
What is the difference between the block, inline block, and inline display properties?
block takes full width and takes element to new line inline block element can be resized
inline
Why are CSS resets helpful for cross browser compatibility?
To get every browser on the same page
Why is it important to be mindful of what you reset with your CSS resets?
You could reset things you can have errors with later on
What is an argument against using CSS resets?
It’s more work for the browser
What is the default value for the position property of HTML elements?
static
Where do the head and body tags go in a valid HTML document?
In the html element