About text Summary


About Headings

HTML has six “levels” of headings:and we can mention he h element

h1 201 Student

h2 201 Student

h3 201 Student

h4 201 Student

h5 201 Student
h6 201 Student

About Paragraphs

  1. Superscript & Subscrip
    • <sup> The <sup> element is used to contain characters that should be superscript such as the suffixes of dates or
  2. <br> : used to add a line break inside the middle of a paragraph
  3. <hr> : it can add ahorizontal rule between sections using the <hr /> tag

Introducing CSS


Css rules

Example About CSS

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Introducing CSS</title>
  5. <link href=”css/style.css” type=”text/css”
  6. rel=”stylesheet” />
  7. </head>
  8. <body>
  9. <h1>From Garden to Plate</h1>
  10. <p>A potager is a French term </p>
  11. <h2>201 Ta Omar Zain </h2>
  12. <p> iam a 201 student … </p>
  13. </body>
  14. </html>

on the external css file

  1. body {font-family: Arial, Verdana, sans-serif;}
  2. h1, h2 {color: #blue;}
  3. p { color: #red;}

Why use External Style Sheets?

Example About all CSS Methods


About Basic JavaScript Instructions


Example:

  1. var today= new Date{);
  2. var hourNow = today.getHours{) ;
  3. var greeting;
  4. if (hourNow > 18) {
  5. greeting= ‘Good evening’;
  6. }else if (hourNow > 12) {
  7. greeting= ‘Good afternoon’;
  8. }else if (hourNow > O) {
  9. greeting ‘Good morning’;
  10. } else {
  11. greeting ‘Welcome’;}
  12. document.write(greeting) ;

Note:

About Comments

We should write comments to explain what your code does. They help make your code easier to read and understand. This can help you and others who read your code

USING A VARIABLE TO STORE A NUMBER

  1. var price;
  2. var quantity;
  3. var total;
  4. price = 5;
  5. quantity = 14;
  6. total = price * quantity;
  7. var el = document.getElementByid( ‘ cost ‘);
  8. el .textContent = ‘$’ +total;

sn

RULES FOR NAMING VARIABLES

  1. The name must begin with a letter, dollar sign ($),or an underscore (_). It must not start with a number.
  2. The name can contain letters, numbers, dollar sign ($), or an underscore (_). Note that you must not use a dash(-) or a period (.) in a variable name.
  3. You cannot use keywords or reserved words. Keywords are special words that tell the interpreter to do something.
  4. All variables are case sensitive, so score and Score would be different variable names, but it is bad practice to create two variables that have the same name using different cases.
  5. Use a name that describes the kind of information that the variable stores.
  6. If your variable name is made up of more than one word, use a capital letter for the first letter of every word after the first word.

About ARRAYS

An array is a special type of variable. It doesn’t just store one value; it stores a list of values

About OPERATORS

They allow programmers to create a single value from one or more values

  1. STRING OPERATORS
  2. LOGICAL OPERATORS
  3. ASSIGNMENT OPERATORS
  4. COMPARISON OPERATORS
  5. ARITHMETIC OPERATORS

DECISIONS & LOOPS

in the comparison operator, the operand on the left calculates the user’s total score. The operand on the right adds together the highest scores for each round. The result is then added to the page. When you assign the result of the comparison to a variable, you do not strictly need the containing parentheses