reading-notes

Class 02 Reading Assignment

Introduction to HTML

  1. Why is it important to use semantic elements in our HTML?
    • We need to make sure that we are using the correct elements, giving our content the correct meaning, function, or appearance.
  2. How many levels of headings are there in HTML?
    • 6
  3. What are some uses for the and elements?
    • The element represents a superscript and the element represents a subscript.
  4. When using the element, what attribute must be added to provide the full expansion of the term?
    • provide a full expansion of the term in plain text on first use, along with the to mark up the abbreviation.

Learn CSS

  1. What are ways we can apply CSS to our HTML?
  2. Why should we avoid using inline styles?
  3. Review the block of code below and answer the following questions:
    1. What is representing the selector: h2
    2. Which components are the CSS declarations: color, padding
    3. Which components are considered properties: black, 5px
    • h2 { color: black; padding: 5px; }

Learn JavaScript

  1. What data type is a sequence of text enclosed in single quote marks?
    • string
  2. List 4 types of JavaScript operators:
    1. (=) (assignment)
    2. (+) (addition)
    3. (-) (subtraction)
    4. (/) (division)
  3. Describe a real world problem you could solve with a function:
    • a simple function that takes two numbers as arguments and multiplies them
  4. An if statement checks a ___ and if it evaluates to ___ then the code will execute.
    • condition, true
  5. What is the use of an else if statement?
    • It can provide more than two outcomes.
  6. List 3 different types of comparison operators:
    1. (strictly equals) ===
    2. (strictly not equals) !==
    3. (less than) <
  7. What is the difference between the logical operator && and   ?
    • && allows you to chain together multiple expressions so that all of them have to individually evaluate to true for the whole expression to run.
    •   allows you to chain together multiple expressions so that one or more of them have to individually evaluate to true for the whole expression to return true.

Bookmark and Review