View on GitHub

reading-notes

Duckett HTML Ch. 2 Text (p.40-61)

Headings

Paragraphs

Bold and **Italic**

Duckett HTML Ch. 10 Introducing CSS

Understanding CSS

p (selector){
    font-family (property); Arial (value); (everything inside curly brackets = declaration)
}

Using External CSS

link href="css/styles.css" type="text/css" rel="stylesheet"

Using Internal CSS

CSS Selectors

CSS works in cascading rules - goes from top to bottom, if two rules are identical for one selector the latter of the two with take precedence over the first

Advantages of External Style Sheet

Duckett JS Ch.2 Basic JavaScript Instructions (p.53-84)

Statements

Comments

Variables

var = variable keyword
var quantity;
quantity = variable name
    quantity = 3

Data Types

Rules for naming Variables

  1. Name must begin with a letter
  2. Name can contain letters, numbers, dollar sign($) or an underscore (_). No dashes (-)or periods (.)
  3. You can not use Keywords or reserved words.
  4. All variables are case sensitve. Score and score are two different variable names.
  5. Use a name that describes what information the variable is storing. For example if the variable is storing someones age name the variable age.
  6. If your variable is made up of more than one

Duckett JS Ch. 4 Decisions & Loops (p.145-162)

Evaluating Conditions & Conditional Statements

if (score > 50){
    document.write("You Passed!");
  else {
      document.write("Try again..");
    }
}

Comparison Operators: Evaluating Conditions

You can evaluate a situation by comparing one value in the script to what you expect it might be. The result will be a boolean: true or false

Back to Homepage