Text in HTML:
Headings:
< h1> < h2> < h3> < h4> < h5> < h6> < h1> is used for main headings < h2> is used for subheadings < h6> this is the smallest one
Exp:
< h1>This is a Main Heading</ h1>
Bold & Italic: <b & <i
- suPerscriPT & suBscriPT: <sup & <sub
- line Breaks & HorizonTal rules: <br/ & <hr/
- strong & emphasis: <strong & <em
CSS:
css make boxes for the HTML elements and we use it to style the HTML and let it be more beautiful and attractive.
JAVASCRIPT IS CASE SENSITIVE:
- A script is a series of instructions that a computer can follow one-by-one.
- comments.
- A variable.
- DATA TYPES.
-
ARRAYS : An array is a special type of variable. It doesn’t just store one value; it stores a list of values. CREATING AN ARRAY:
-
var colors; colors [‘white’, ‘black’, ‘custom’];
- var el document.getElementByld(‘colors’); el. textContent = colors[0];
switch statements:
Comparison Operators:
- == : is equal to
- !=: is not equal to.
- ===: Strict equal to (Compares the value and the type).
- !==: Strict Not equal to (Compares the value and the type).
- Greater than.
- Less than.
- Greater than or equal.
- Less than or equal.
Logical operators allow you to combine more than one set of comparison operators.
If statements & else statements.