reading-notes

HTML and CSS notes

Border - ever box has one it seperates one box from another

Margin - Margins sit outside the border and you can use it to set a gap between borders of two adjacent boxes

Padding - is the space in between the border of a box and any content within

Box Demensions - Popular ways to specify width and hieght. you can use pixels, em, and percentages.

percentages - are relative to size of box

em - relative to size of the text within the box

pixels - are relative to the browser

lists

<ol> orderderd list

<ul> unordered list

<dl> definition list

Nested lists can be used with <li> within an ordered list

Javascript notes

Array - shows a list of values

index - each array is given a number called an index

The way to access an array is using square brackets followed by the index

switch statements

break - a keyword that tells the interpeter the switch statement is done and to run the code after.

loops

Loop counters