View On GitHub
reading-notes
Reading Notes for Codefellows!
Project maintained by
AlanYHung
Hosted on GitHub Pages — Theme by
mattgraham
Code 201
Reading 02
(All My Notes are attributed/sourced from the Resources directly preceding them.)
HTML & CSS
Text (pp. 40-61)
HTML elements are used to describe the structure of the page.
2 Types of Markups
Structural - elements to describe headings and paragraphs
<h1> - <h6> (6 levels of headings)
<p> (paragraphs)
<b> (bold)
<i> (italicize)
<sup> (superscript)
<sub> (subscript)
<br /> (Line Break/Carriage Return)
<hr /> (Page Break)
Semantic - elements used to add extra information. (i.e. where to place emphasis in a sentence)
<strong> (indicates strong importance)
<em> (emphasis in a sentence to change meaning)
<blockquote> (for long quotes around a paragraph or longer)
<q> (for short quotes)
<abbr> (abbreviation)
<cite> (Cite information when referencing from another work)
<dfn> (definition)
<address> (contains links)
<ins> (shows what has been added)
<del> (shows what has been removed)
<s> (denotes something that is no longer accurate)
Introducing CSS (pp. 226-245)
CSS isolates each HTML element and uses rules to indicate how it should appear
Selectors indicated the elements that rules apply to
Declarations are the rules that indicate how the elements should look. 2 Parts to Declarations:
Properties of elements
Values of the Properties
Convention is to put CSS into it’s own file “styles.css”, however you can include the css within your HTML File as well.
JavaScript & JQuery
Basic JavaScript Instructions (pp. 53-84)
A script is made up of a series of statements.
Each statement is a like a step in a recipe.
Scripts require very precise instructions in order for the computer to achieve the intended goal.
Variables are computer allocated memory locations used to store temporary pieces of information used in the script.
Arrays are variables that combine several memory locations and several pieces of information into 1 variable.
Type of variables:
Numbers (0-9)
Strings (text)
Boolean (True or False)
Expressions evaluate into a single value
Requires the use of operators for the calculation
Decisions and Loops (pp. 145-162)
There are 3 concepts programmers usually rely on to determine path of script
Evaluations (Determine if result matches expectations)
Decisions (Use results of evaluations to determine path)
Loops (For when a set of steps need to be repeated)
There are 2 components to a decision:
The result of an evaluated Expression
The conditional statement used to determine path of script
Refer to
Code 102 - Reading 08
for operators used in conditional statements such as IF..Then..Else
<– Back