Reading-Notes

My journal for Code Fellows


Project maintained by RogerMReyes Hosted on GitHub Pages — Theme by mattgraham

HTML, CSS, and JavaScript Basics

HTML

Chapter 2 - Text

Structural Markup - Are used to help structurally organize the page.
The following tags are examples of structural markup

Semantic Markup - These do not alter the structure of the webpage but add more information contained within.
Examples include

Chapter 10 - Introducing CSS

External CSS - is CSS contained linked to an external file from the HTML document

Internal CSS is CSS contained within the HTML document

CSS Selectors - used to target a specific group of elements
Examples of selectors include

CSS Cascading - CSS follows a set of cascading rules for overlapping rules

  1. The latter of two identical selectors will take precedence
  2. The more specific selector will take precedence
  3. !important can be added to raise the priority over other precedences

Inheritance - the child elements contained within will also adopt the style of the parent element

JavaScript

Chapter 2 - Basic JavaScript Instructions

Statements - Each step a computer follows is called a statement

Comments - are defined by // and are used to help someone who may be reading your code understand the processes behind it
Multiple lines of a comment can also be denoted by /* */ and will turn everything contained inside into a comment

Variables - store temporary bits of information that the script can utilize
Variables are declared with a keyword such as var or let followed by a name for the variable
To assign them a value the = sign is used to assign the named variable to whatever value follows the = operator
Variables can always be reassigned values later in the script
Rules for Naming Variables

  1. beginning must start with a letter, dollar sign $, or underscore _ and not a number
  2. names cannot contain a dash - or period.
  3. names cannot use keywords or reserved words such as var
  4. variables names are case sensitive
  5. the name should describe the content it is storing
  6. Camel Case should be used for names with more than one word

Data Types - distinguish the type of information that is being stored
There are Numeric (numbers), String (text), and boolean (true/false) data types

Arrays - Store a list of values
The values of an array are organized by index
The first index or the first value starts at index 0.
values in an array can be changed by referencing the values index number

Expressions - evaluates the result into a singular value
You can either assign a value to a variable or use two or more values to return a single value

Operators - Expressions use Operators to turn multiple values into a singular value
Ex. Math +, -, *,

Chapter 4 - Decisions and Loops

Return to Code 201 Table of Contents