HTML Text

HTML

Headings

HTML

Paragraphs

HTML

Bold & Italic

  1. Bold:

Example:

<p>This is how we make a word appear <b>bold.</b>
</p>
<p>Inside a product description you might see some
<b>key features</b> in bold.</p>
  1. Italic:

Example:

<p>This is how we make a word appear <i>italic</i>.
</p>
<p>It's a potato <i>Solanum teberosum</i>.</p>
<p>Captain Cook sailed to Australia on the
<i>Endeavour</i>.</p>

Superscript & Subscript

Example:

HTML

Line Breaks & Horizontal Rules

  1. Line breaks:

Example:

  <p>The Earth<br/>gets one hundred tons heavier
  every day<br/>due to falling space dust.</p>
  1. Horizontal Rules:

Example:

<p>Venus is the only planet that rotates
clockwise.</p>
<hr/>
<p>Jupiter is bigger than all the other planets
combined.</p>

Introduction to CSS:

CSS!

Whats is CSS?

CSS!

CSS!

Using External CSS

CSS!

  1. href

This specifies the path to the CSS file (which is often placed in a folder called css or styles).

  1. type

This attribute specifies the type of document being linked to. The value should be text/css.

  1. rel

This specifies the relationship between the HTML page and the file it is linked to. The value should be stylesheet when linking to a CSS file.

CSS Selectors

CSS

Basic JavaScript Instructions

JS

How to use objects and methods

JS

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:

Example:

Example

Using Do While loops:

Example:

Example

References:

Main page