Skip to content

Instantly share code, notes, and snippets.

@davidbecker6081
Last active April 27, 2017 18:00
Show Gist options
  • Save davidbecker6081/fa437e2e0245c5a47dc348ff9c9b5c77 to your computer and use it in GitHub Desktop.
Save davidbecker6081/fa437e2e0245c5a47dc348ff9c9b5c77 to your computer and use it in GitHub Desktop.
Prework Day 2 - David Becker

#Prework Day 2 Chapters 3+4

  1. There are three main types of lists in HTML: ordered, unordered, and definition. What are their differences?
  • An ordered list (<ol>) is numbered, an unordered list(<ul>) begin with a bullet point, and a definition (<dl>) is a set of terms (with each's definition). The ordered and unordered lists can contain <li> items, while the definition lists contain <dt> (contains term being defined) and <dd> (contains the definition) elements.
  1. What is the basic structure of an element used to link to another website?
    • <a href = "link URL">Text describing link</a> - opening link tag, text the user clicks on, closing link tag
  2. What attribute should you include in a link to open a new tab when the link is clicked?
    • the target attribute: target="_blank"> / as well as informing the user the link will open in a new window
  3. How do you link to a specific part of the same page?
    • first you need you identify the points in the page that the link will go to (using the ID attribute that starts with either a letter or an underscore), then you can use the href attribute starting with a # symbol followed by the value of the ID attribute

Chapters 10+11+12

  1. What is the purpose of CSS?
    • CSS controles the rules that specify how the content of an element should appear (called properties)
  2. What does CSS stand for? What does cascading mean in this case?
    • CSS- Cascading Style Sheets/ cascading means that the web page reads and executes properties based on specificity (top to bottom), meaning you can overwrite generic rules with more specific rules
  3. What is the basic structure of a CSS rule?
    • Contains two parts: a selector (or group of selectors) and a declaration containing a property and it's value - p { color: green;}
  4. How do you link a CSS stylesheet to your HTML document?
    • <link href="name.css" type="text/css" rel="stylesheet">
  5. What is it useful to use external stylesheets as opposed to using internal CSS?
    • We can reuse stylesheets for multiple web pages (DRY method), it gives the ability to alter the appearance of multiple elements at once, and HTML code is easier to read
  6. Describe what a color hex code is.
    • Hex values represent (in order) red, green, and blue colors; written as #000000 (six numbers, each color getting two numbers)
  7. What are the three parts of an HSL color property?
    • Hue (color circle=values 0-360), Saturation (amount of gray in a color, 0%-100%), Lightness (amount of white or black in a color, also represented by percent), can also contain transparency for HSLA property (0-1.0)
  8. In the world of typeface, what are the three main categories of fonts? What are the differences between them?
    • Serif (extra details [serifs] on the ends of the main strokes of the letters), Sans Serif (straight ends to letters, cleaner design), and monospace (every letter is the same width)
  9. When specifiying font-size, what are the main three units used?
    • Pixels (#px, default text size is 16px), Percentages (#%), and EMS (#em)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment