View on GitHub

reading-notes

Chapter 2 and 10

Text And intro to Css

  1. Headings and paragraphs
  2. Bold, Itlatic and emphasis
  3. Structral and symantic Markup

Headings and paragraphing:

pic

Bold ,Itlatic and emphisis

#### Dictionary :

  1. <b>
Code purpose
<b> bold
<i> itlatic
<sup> character as number ,dates
<sub> characters s foot notes or chemical
<br> line break inside
<hr> line between themes
<srong> important element

introducing Css:

A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.

J.S

Decisions and Loops:

here are situations when we want to run the code at different conditions, such as, if one condition applies run a particular code, if another condition applies another code is run. This is prioritized with “if” and “else if” conditionals as follows:

 < `function getColor(phrase){
   if (phrase === "stop"){
   console.log("red");
   } else if (phrase === "slow"){
   console.log("yellow");
   } else if (phrase === "go"){
   console.log("green");
  } else {
   console.log("purple");
   }
   }`