Read: 02 - HTML Text, CSS Introduction, and Basic JavaScript Instructions
From the Duckett HTML book:
1.Chapter 2: Text (pp.40-61)
-
Tags also called markup.
-
Structural markup: elements that describe both headings and paragraphs.
<p> <h1> ..<h6> <sup> <sub> <b> <i> <br/> <hr/>-White space collapsing -> blank spaces, newlines, or tabs.<p> Hello all </p>. - Semantic markup: provides extra information, used according to their intended purpose. ->
<strong>, <em>, <blockquote>, <q>, <abbr>, <cite>, <dfn>, <address>, <ins> ->(inserted) underlined, <del> -> line through it (show deleted text), <s> output like <ins> but for : sth that no longer accurate or relevant (not for deleted)..<dfn>-> define new terminology. –2.Chapter 10: Ch.10 Introducing CSS (pp.226-245) //rep
-
The CSS comprises rules, that have 3 parts: a selector, a property, and a value.
- CSS selectors:
- *{} -> Selects all elements
- Type selecter (h1, p,..etc) -> elements that matches name
- Class Selector(.note {}) -> Selects all elements with the same class attribute value
- ID Selector -> Selects all elements with the same ID attribute value
- Child Selector (li>a {}) -> selects all a that direct child to li
- Descendant Selector (p a {}) -> selects all a that child to p (not just a direct child of that p)
- Adjacent Sibling Selector (h1+p {}) -> first p element that after any h1 (next sibling)
- General Sibling Selector (h1~p {}) -> element that siblings any h1 (not have to be the directly preceding element)
- CSS Rules precedence:
- Last rule -> with identical selectors, last one has the most precedence.
- Specificity -> more specific rule take precedence, example: p#intro is more specific than p
- Important -> !important after any property value shows that this rule more important than others.
–
From the Duckett JS book:
Chapter 2: Basic JavaScript Instructions (pp.53-84)
- JAVASCRIPT IS CASE SENSITIVE
- Script: is a series of instructions that a computer can follow.
//OR/* */for comments.- DATA TYPES : Number, String, and boolean.
- A number of variables can be declared or assigned or both in the same statement.
- Variable name must begin with letter, dollar sign ($),or an underscore (_).
- Array is a variable that stores a list of values. -rep-
- Expressions have two types:
- expressions that assign a value to a variable; Like name = ‘Noor’.
- expressions that use 2 or more variables in order to return a value; A= 2+3.
- Operations:
- Assignment operators -> name = ‘Noor’
- Arithmetic Operators -> uses operators like + - / *%; A= 2+3 -> A= 5.
- Comparison operators -> Compare two or more Values, then return True/False; A= 7>2 -> A= True.
- Logical operators -> connect two or more expressions, then return True/False.
- String operators -> Combine Two or more strings; Major = ‘Web’ + ‘ Developer’ -> Major =’Web Developer’.
Chapter 4: Decisions and Loops- only up to the section on switch statements (pp.145-162)
- Flow charts is steps that help to determine what line of codes should run next.
- Diamond shape is decision point.
- There are two components to a decision:
- An expression that returns a value.
- A conditional statement.
- Comparison operators:
- (Is equal to ==) -> compares to values.
- (Strict equal to ===) -> compares to values with data type.
- (Is not equal to != )
- (Strict not equal to !== )
- Other Comparison operators> < >= <=
-
Logical Operators: evaluated from left to right. (&& !) - If statement is conditional expressions that executed when proved to be true.
- If else -> first true condition is executed, when the condition is false see other(else).
-
Switch statement -> tests the value of a variable and compares it with multiple cases.
Link : How to Write a Git Commit Message?
- a well-crafted Git commit message is the best way to communicate context about a change to fellow developers.
git logShows the log of previous commits.- ” In order to create a useful revision history, teams should first agree on a commit message convention”