Text

When creating a web page, you add tags (known as markup) to the contents of the page. These tags provide extra meaning and allow browsers to show users the appropriate structure for the page.

  1. Headings <h1></h1> to <h6></h6> the h1 is the big one and the h6 is the smalist one
  2. Paragraphs <p></p> To create Paragraph we use the p tag
  3. Bold & Italic to bold a text use the <b> tag and to make it italic use <i> tag
  4. Superscript & Subscript The <sup> element is usedto contain characters thatshould be superscript such as the suffixes of dates The <sub> element is used to contain characters that should be subscript. It is commonly used with foot notes or chemical formulas such as H2O.
  5. White Space one space will shown in browser
  6. Line Breaks & Horizontal Rules to go down one line use <br /> to add ahorizontal rules <hr/>
  7. Strong & Emphasis The use of the <strong> element indicates that its content has strong importance. The <em> element indicates emphasis that subtly changes the meaning of a sentence
  8. Quotations The <blockquote> element is used for longer quotes that take up an entire paragraph. Note how the <p> element is still used inside the <blockquote> element. The <q> element is used for shorter quotes that sit within a paragraph. Browsers are supposed to put quotes around the <q> element, however Internet Explorer does not — therefore many people avoid using the <q> element.
  9. Abbreviations & Acronyms If you use an abbreviation or an acronym, then the <abbr> element can be used. A title attribute on the opening tag is used to specify the full term.
  10. Citations & Definitions When you are referencing a piece of work such as a book, film or research paper, the <cite> element can be used to indicate where the citation is from. The <dfn> element is used to indicate the defining instance of a new term.
  11. Author Details The <address> element has quite a specific use: to contain contact details for the author of the page.
  12. Changes to Content The <ins> element can be used to show content that has been inserted into a document, while the <del> element can show text that has been deleted from it. The <s> element indicates something that is no longer accurate or relevant (but that should not be deleted).

Example

Copy the Code and add it to new file.html as we learn in last episod and see every thing about text .

<html> <head> <title>Text</title> </head> <body> <h1>The Story in the Book</h1> <h2>Chapter 1</h2> <p>Molly had been staring out of her window for about an hour now. On her desk, lying between the copies of <i>Nature</i>, <i>New Scientist</i>, and all the other scientific journals her work had appeared in, was a well thumbed copy of <cite>On The Road</cite>. It had been Molly’s favorite book since college, and the longer she spent in these four walls the more she felt she needed to be free.</p> <p>She had spent the last ten years in this room, sitting under a poster with an Oscar Wilde quote proclaiming that <q>Work is the refuge of people who have nothing better to do</q>. Although many considered her pioneering work, unraveling the secrets of the llama <abbr title="Deoxyribonucleic acid">DNA</abbr>, to be an outstanding achievement, Molly <em>did</em> think she had something better to do.</p> </body> </html>

Summary TEXT

Introducing CSS

CSS allows you to create rules that specify how the content of an element should appear. For example, you can specify that the background of the page is cream, all paragraphs should appear in gray using the Arial typeface, or that all level one headings should be in a blue, italic, Times typeface.

Understanding CSS:

Thinking Inside the Box

The key to understanding how CSS works is to imagine that there is an invisible box around every HTML element.

BLOCK & INLINE ELEMENTS

Block level elements look like they start on a new line. Examples include the <h1>-<h6>, <p> and <div> elements. Inline elements flow within the text and do not start on a new line. Examples include <b>, <i>,<img>, <em> and <span>.

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

Example Styles | Boxes | Text | Specific | | ———– | ———– | ———– | | Width and height Borders (color, width, and style) Background color and images Position in the browser window | Typeface Size ColorItalics, bold, uppercase,lowercase, small-caps | There are also specific ways in which you can style certain elements such as lists, tables, and forms. |

CSS Associates Style rules with HTML elements

CSS works by associating rules with HTML elements. These rules govern how the content of specified elements should be displayed. A CSS rule contains two parts: a selector and a declaration.

css

There are three way to add css to Html

Selectors

css

Summary

CSS treats each HTML e XX lement as if it appears inside its own box and uses rules to indicate how that element should look. Rules are made up of selectors (that specify the elements the rule applies to) and declarations (that indicate what these elements should look like). Different types of selectors allow you to target your rules at different elements. Declarations are made up of two parts: the properties of the element that you want to change, and the values of those properties. For example, the font-family property sets the choice of font, and the value arial specifies Arial as the preferred typeface. CSS rules usually appear in a separate document, although they may appear within an HTML page.

Questions

JavaScript

Tody we are going to learn about JavaScript it also called JS

JavaScript can be used in browsers to make a website more interactive, intresting,and user friendly JavaScript is a programing language.

First thing first :

you will need a basic knowldge to know how to build webpages using HTML and CSS

After that :

You know about :

  1. Basic progroaming consepts .
  2. The language itself.
  3. How to applied what you learn .

If you are writing an Js code inside html page it should be in <script></script> Tag

You can use the JS to :

  1. Access content
  2. Modify Content
  3. Program rule
  4. React

Befor looking at java Scripts lets calairfy some Html & Css Terms html&Css

#### Before you learn how to read and write in js languge itself you need to become familiar with some key key

How to write a Script :

Expressinon

An expressinon evaluate into result in a single value.

Operators

Expression relay on somthing called operators

DECISIONS

Using the results ofevaluations, you candecide which path your script should go down. desmaking

SUMMARY

  1. Conditional statements allow your code to make decisions about what to do next.
  2. Comparison operators (===, ! ==, ==, ! =, <, >, <=, =>) are used to compare two operands.
  3. Logical operators allow you to combine more than one set of comparison operators.
  4. if … else statements allow you to run one set of code if a condition is true, and another if it is false.