reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 201: Class 02 - Basics of HTML, CSS & JS


HTML Chapter 2: Pages 40-61

Structural Markup used to describe headings and paragraphs Semantic Markup provides extra information and emphasis on certain parts of a sentence or paragraph

Text Emphasis, Line Breaks, and Horizontal Rules

White space condensing multiple spaces in a row are condensed to a single space, multiple blank rows are condensed to a single blank row

Semantic Tags

HTML Chapter 10: Pages 226-245

CSS allows the programmer to create rules that determine how each element box is presented

To link style.css doc to index.html, use similar code in the html doc:


<head>
    <link href="css/example.css" type="text/css" rel="stylesheet" />
</html>

To control styles in an html doc, use <style></style> tags


<style type="text/css">
    body{
        font-family: arial;
        background-color: rgb(255,255,255);
    }
</style>

Full chart of css selectors can be found on page 238

CSS Rule Cascade

JS Chapter 2: Pages 53-84

Statement each individual step that the computer is intended to follow, ends with a ;

Comments programmer side notes that are used to convey code intent for easier debugging and future updating

Variable a data storage unit

Data Types

Numeric Data Types String Data Types Boolean Data Types
Example = 0.75 Example = 'Hi, Ivy!' Example = true
For tasks involving counting or sums Enclosed in a pair of single or double quotes used for working with text True / False

Strings must always be surrounded by quotes either "string" or 'string' but not a combination. It must also be on one line.

6 Rules for naming variables

  1. must begin with a letter, dollar sign $, or underscore _
  2. no dashes -, or dots . are allowed in a name
  3. no keywords or reserved words are allowed
  4. names are case sensitive
  5. create a name that represents the information it stores
  6. use camelCase for names with more than one word

Array a variable that stores a list of values

Expressions evaluate into a single value

Operators allow programmers to create a single value from one or more values

Arithmetic Operators JS contains the standard operators +, -, /, * which can be used with numbers as well as the following special operators

String Operator just one operator + used to join strings on either side

Mixing numbers and strings

JS Chapter 2: Pages 145-162

Comparison operators can compare one value in the script to its expected value and result boolean

Logical Operators

Short Circuit Evaluation logical evaluations evaluate from left to right and will stop as soon as they are satisfied of the result

If Statement runs the code in the code block if the if statement is true If Else Statement runs the code in the if code block if true otherwise runs code in the else block


if(score >= 50) {
    congratulate();
} else {
    encourage();
}

Additional Resources: http://chris.beams.io/psots/git-comit/

Commit messages should have a plan to incorporate the following characteristics

Correct commit subject lines will work in the following format


Return to reading-notes Deployed Site

Return to reading-notes Mark Down