reading-notes

Code Fellows courses Notes

This project is maintained by QamarAlkhatib

Continuing Jon Duckett HTML book:

Chapter 2 - Text

when creating web pages with HTML, we use tags and these tags for the content of the page know as markup.

we have Two types of markup:

  1. Structural markup: and its the elements that we use to describe both headings and paragraphs. such as < h1-h6>, < p> and superscript < sup > & subscript < sub>.

  2. Semantic markup: and it provides extra information such as where the emphasis is placed in a sentence. such as < strong>, < em>, and < abbr> tags

Chapter 10 - introducing CSS

This chapter is talking about The style in CSS and how to apply them, such as, boxes, fonts, object position, Colors, selectors.

And how to use external CSS, internal CSS, and inline CSS: and this picture summary them:

Javascript Jon Duckett Book

Chapter 2 - basic JS instructions

This chapter is talking about the statements, comments, variables and How to declare and assign a value to it, As well as the data types (String, number, Boolean). in addition Talk about the rules for naming variables such as (must begin with a letter, $ or _). And Expressions, operators, and how to use them.

And a type of data structure which is The (Arrays) and its can store many values and a list. And how to create an array with values in it and how to access its values.

Chapter 4- Decisions and loops

This chapter is talking about decision-making in a script to determine which line of code should run next, and its components 1. (expression evaluated, and returns a value) and 2. (conditional statement, and it says what to do in a given situation). in addition the comparison operators such as (== , !=, ===, <, >) and logical operators.

As well as, talk about the if statements, and its check if a condition is true, and if it’s true the code block will execute. and the if-else and is just like the if statement, but if the condition is not true in the if the else if will resolves and run instead of the first if statement

if(condition){
    //code block
}
else {
    //code block
}

and finally, About the Switch Statements starts with a variable called the switch value. Each case indicates a possible value for this variable and the code that should run if the variable matches that value.

and here is the difference between If else and Switch: