HTML

html

Chapter 3: Lists

  1. Ordered lists are lists where each item in the list is numbered. For example, the list might be a set of steps for a recipe that must be performed in order, or a legal contract where each point needs to be identified by a section number.

  2. Unordered lists are lists that begin with a bullet point (rather than characters that indicate order).

  3. Definition lists are made up of a set of terms along with the definitions for each of those terms.

Ordered Lists

Ordered List Example:

<ol>
<li>Chop potatoes into quarters</li>
<li>Simmer in salted water for 15-20 minutes until tender</li>
<li>Heat milk, butter and nutmeg</li>
<li>Drain potatoes and mash</li>
<li>Mix in the milk mixture</li>
</ol>

olist

Unordered Lists

Unordered List Example:

<ul>
<li>1kg King Edward potatoes</li>
<li>100ml milk</li>
<li>50g salted butter</li>
<li>Freshly grated nutmeg</li>
<li>Salt and pepper to taste</li>
</ul>

ulist

Definition Lists

References:

Definition List Example:

<dl>
<dt>Sashimi</dt>
<dd>Sliced raw fish that is served with condiments such as shredded daikon radish or ginger root, wasabi and soy sauce</dd>
<dt>Scale</dt>
<dd>A device used to accurately measure the weight of ingredients</dd>
<dd>A technique by which the scales are removed from the skin of a fish</dd>
<dt>Scamorze</dt>
<dt>Scamorzo</dt>
<dd>An Italian cheese usually made from whole cow's milk (although it was traditionally made from buffalo milk)</dd>
</dl>

ulist

CSS

Chapter 13: Boxes

Box Dimensions (width, height)

Example:

CSS

Limiting width and height

  1. width:

Width Example:

CSS

  1. height:

Height Example:

CSS

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:

  1. hidden:

This property simply hides any extra content that does not fit in the box.

  1. scroll

This property adds a scrollbar to the box so that users can scroll to see the missing content. This property simply hides any extra content that does not fit in the box.

Overflow Example:

CSS

Border, Margin & Padding

CSS

White space & Vertical Margin

CSS

JavasCript

JS

Chapter 2: Basic JavaScript Instructions

How to use objects and methods

JS

Chapter 4: Decisions and Loops” from switch statements

Decisions And Loops

Comparison Operators

Evaluating Conditions

EV1 EV2

Using comparision operators

Example:

var pass = 50;  // Pass mark
var score = 90; //Score

// Check if the user has passed
var hasPassed = score > = pass ;

// Write the message into the page
var el = document.getElementByl('answer');
e1.textContent = 'Leve 1 passed: ' + hasPassed;

If Statment

JS

If Else Statment

JS

Loops

Loops

Loop counters and For Loops

LC

Using While loops

While Example:

Example

Using Do While loops

Do While Example:

Example

Using Switch Statements

switch

switch

switch

References:

Main page