Text

This is my reading notes for Code Fellows.

Text

HTML has six “levels” of headings:

<h1> Largest 
<h2>
<h3>
<h4>  To
<h5>
<h6> Smallest

Semantic Markup

There are some text elements that are not intended to affect the structure of your web pages, but they do add extra information to the pages

Strong & Emphasis ————- <strong> , <em>

Quotations ————<blockquote>, <q>


CSS.

CSS allows you to create rules that control the way that each individual box (and the contents of that box) is presented.

CSS code can be written in 3 ways:

Basic CSS declaration

CSS declaration


Basic JavaScript Instructions.

A script is a series of instructions that a computer can follow one-by-one. Each individual instruction or step is known as a statement. Statements should end with a semicolon.

Decisions and Loops.

Decision Making statements are if, else, elseif and switch these statements are used in making decisions.

if..else statements is used where you want to execute a set of code when a condition is true and another if the condition is not true

eg:

if (condition) { code to be executed if condition is true } else { code to be executed if condition is false }

elseif statements elseif statements is used where you want to execute a some code if one of several conditions are true use the elseif statement

eg:

if (condition) { code to be executed if condition is true } elseif (condition) { code to be executed if condition is true; } else { code to be executed if condition is false }

Comparison operators

A comparison operator compares its operands and returns a logical value based on whether the comparison is true. The operands can be numerical, string, logical, or object values.

Comparasion operators


Loops

Loops offer a quick and easy way to do something repeatedly.

For Loop

A for loop repeats until a specified condition evaluates to false.

consists of 3 parts:

for ([initialExpression]; [conditionExpression]; [incrementExpression])

While loop

A while statement executes its statements as long as a specified condition evaluates to true.


Loop Quiz!

Quizz.com

  1. Which of these is not a type of loop in JavaScript?
  1. Which of these expressions is NOT a valid way to add 1 to a variable in JavaScript?
  1. Let’s say you have an x variable that starts as 0. If you want your while loop to stop once the x variable equals 400, what condition would you use?

Home