View on GitHub

reads

https://yazansneneh.github.io/reads/

Text

Headings

Paragraphs

Bold & Italic

Superscript & Subscrip

Line Breaks & Horizontal Rules

Semantic Markup

There are some text elements that are not intended to affect the structure of your web pages but they do add extra information to the pages — they are known as semantic markup.

Strong & Emphasis

Quotations : <blockquote>

 * The `<blockquote>` - element is used for long quotes.
 * The `<q>` - element is used for short quotes.

Abbreviations & Acronyms

 * `<abbr>` - used to add acronym e.g. `<abbr title ='doctor'> Dr </abbr>`.

Author Details

 * `<address>` -  use: to contain contact details for the author of the page, like below.
    ```<address> 
        <p><a href="mailto:homer@example.org"> homer@example.org</a></p>
        <p>742 Evergreen Terrace, Springfield.</p>
    </address>```

Understanding CSS: Thinking Inside the Box

BLOCK & INLINE ELEMENTS

  * **Block level elements** - elements take full width of the parent box and high of the content, example of block elements are `<div>, <header>, <h1>, <p>`.
  * **Inline level elements** - elements take the height and with of the content, example of inline elements are `<img>, <a>` tags.

CSS Selectors

Inheritance

When we apply some of css properties to the parent, all elements inside that element will inherit the property.

Basic JavaScript Instructions

ARRAYS

conditionals and loops

switch statement.

* it's conditional statement, i provide it several conditions.
* if statement might be complex, switch make it easier to interact with.
* it take one expression.
* check expression with conditions provided.
* syntax:
   ``` switch(expression){
        case condition:
           script;
           break; // to break out of statement
        default: // i provide it default case, it's basically the else in if
            script
   } ``` #### loops    * loops also effect the normal flow of the program.   * loops allow piece of code run many times until condition is true.   * example of loops are **for loop** and **while loop**   * the different between for loop and while loop is
* for loops will keep running to the end, for example count from 1 to 10
* while loop: in while loop we don't know how many times will the program run so it will keep running until the condition is true, for example user password input is incorrect, until user input correct value.