View on GitHub

reading-notes

Learning Notes Repo for Code Fellows

HTML Text

There are two kinds of markups, structural markup and semantic markup:

The structural elements:

The semantic elements:

Introducing CSS

CSS works by associating rules with HTML elements. These rules will cause the display of the specified elements. There are two parts are involved, a selector and a declaration.

Using <link> element in HTML to call the external CSS file:

Using <style> element to indicate an internal CSS

CSS selectors:

CSS rules cascade:

Basic JavaScript Instructions

Tips to write a script for a web page:

Rules for naming variables:

Decisions and Loops

By using the results of evaluations, you can set the path for your script to proceed. There are two components to a decision:

  1. An evaluating expression that will return a value
  2. A conditional statement to give a instruction

Comparision operators:

Logical operators:

The if statement is used to check a condition. The code block will be executed if the condition is true.

The if…else statement also is used to check a condition. The first code block will be executed if the condition is true. The second code block will be executed if the condition is false.

<==Back