reading-notes

Reading

Chapter 2: “Text” (pp.40-61)

Structural Markup : This is markup (in any language) that gives information about the structure of a document.

Headings

HTML has six “levels” of headings:

<h1>This is a Main Heading</h1>
<h2>This is a Level 2 Heading</h2>
<h3>This is a Level 3 Heading</h3>
<h4>This is a Level 4 Heading</h4>
<h5>This is a Level 5 Heading</h5>
<h6>This is a Level 6 Heading</h6>

Paragraphs

By default, a browser will show each paragraph on a new line with some space between it and any subsequent paragraphs.

<p>Text is easier to understand when it is split up
into units of text. For example, a book may have
chapters. Chapters can have subheadings. Under
each heading there will be one or more
paragraphs.</p>

and there alot of other tags like:

  1. Bold <b>

  2. Italic <i>

  3. Superscript & Subscript <sup> & <sub>

  4. Line Breaks & Horizontal Rules <br /> & <hr />

Chapter 10: Ch.10 “Introducing CSS” (pp.226-245)

CSS allows you to create rules that specify how the content of an element should appear.

A CSS rule contains two parts: a selector and a declaration.

Three ways to write CSS

  1. Using External CSS

  2. Using Internal CSS

  3. Using inline CSS

CSS Selectors

selectors are patterns used to select the element(s) you want to style.

Chapter 2: “Basic JavaScript Instructions” (pp.53-84)

A script is a sequence of characters written according to the syntax of a scripting language.

write comments to explain what your code does.

// Display the appropriate greeti ng based on the current time

variables.

JavaScript variables are containers for storing data values.

we can use:

Data types

Data types basically specify what kind of data can be stored and manipulated within a program.

Chapter 4: “Decisions and Loops”

Conditional statement

A conditional statement is a statement that can be written in the form “If P then Q,” where P and Q are sentences.

logical operation

a logical operation is a special symbol or word that connects two or more phrases of information.