ol
: Creates an ordered listul
: Creates an unordered listd1
: Creates a definitions listli
: Opening and closing tags for any items within a list.dt
: acts like the li of the d1
element. Opening and closing tags are used within the d1
tag.dd
: The tag that actually contains the definition.Nested lists
: indented sub-list within a list.border
: Separates the edge of one box from another.margin
: Sits outside the border. Space between two boxes.Padding
: Space between the border and the content.border color
: This colors the border around a box.display
: allows to change a inline element into a block level element.inline
: makes a block level element into an inline.block
: Turns a inline element into a block level element.none
: used to hide elements from the page.visibility
: Has two values; hidden and visible. this either shows or hides an element.border-images
: Creates an image to the border of a box.border-radius
: Creates rounded corners on a box. condition(counter)---> how many times the code will run
keyword ^
_|_ ___________|____________
| | | |
for (var i = 0; i < 10; i++>) {
document.write(i) |
} |_________________| V
| | opening
| |
v v
closing code to execute
---> var i - 0
---> i<10
---> i++
```
var i;
for (i=0; i<10 ; i++){}
```
break
: used to terminate a loop.continue
: tells the interpreter to continue with the loop.arrays(loops)
: can be used to determine how many times to run the code depending on what is stored in the array.infinite loop
: when a condition never returns false.