View on GitHub

code-201-reading-notes

HTML list

HTML provide 3 difreent kinds of lists wich is:

list

list

list

Review :

There are three types of HTML lists:

HTML boxes

css treat every elemnt in HTML as it lives in own box, so you can set several properties that affect the appearance of these boxes lets talk littel bit about it : ## Dimensions

Overflowing Content

overflow: The overflow property tells the browser what to do if the content contained within a box is larger than the box itself. It can have one of two values:

Border, Margin & Padding

bmp

Border Style

bs

inline :witch causes a block-level element to act like an inline element block :witch causes an inline element to act like a block-level element inline-block :witch causes a block-level element to flow like an inline element, while retaining other features of a block-level element none :witch hides an element from the page

Box Shadows :

BOX

so CSS treats each HTMLE BY :

  1. You can use CSS to control the dimensions of a box.
  2. You can also control the borders, margin and padding for each box with CSS.
  3. It is possible to hide elements using the display and visibility properties.
  4. Block-level boxes can be made into inline boxes, and inline boxes made into block-level boxes.

Decisions and Loops in js :

js

Loops :

its another kind of cheak conditions, if it returns true the code after will run, then it will recheak again if it is still return true and keep cheak and run until returns flse and there is 3 typs of loops:

  1. FOR : it is usually a counter which is used to tell how many times loop should run

for

  1. WHILE : you can use while if you dont know how many times the code will keep loop, it will keep loop until the condition is true

while

  1. DO WHILE : its same of ehile loop but in difference: it will always run thr statments inside the curly braces at least once, even if the condation evaluates to false..

do