READING-NOTE

View on GitHub

Is it hard to Learn?

How Peopl does Access the Web?

How the Web Works?

HTM L Us es El ements to Describe theStructure of Pages

Attributes Tell Us More About El ements

The majority of attributes can only be used on certain elements, although a few attributes (such as lang) can appear on any element.

Most attribute values are either pre-defined or follow a stipulated format. We will look at the permitted values as we

introduce each new attribute. The value of the lang attribute is an abbreviated way of specifying which language is used inside the element that all browsers understand.

Escape Characters

Therefore, if you want these characters to appear on your page you need to use what are termed “escape” characters (also known as escape codes or entity references). For example, to write a left angled bracket, you can use either < or <. For an ampersand, you can use either & or &. There are also special codes that can be used to show symbols such as copyright and trademark, currency symbols, mathematical characters, and some punctuation marks. For example, if you want to include a copyright symbol on a web page you can use either © or ©. When using escape characters, it is important to check the page in your browser to ensure that the correct symbol shows up. This is because some fonts do not support all of these characters and you might therefore need to specify a different font for these characters in your CSS code.

Site Maps

Example Site Map

HOW A BROWSER SEES A WEB PAGE

  1. RECEIVE A PAGE AS HTML CODE
  2. CREATE A MODEL OF THE PAGE AND STORE IT IN MEMORY
  3. USE A RENDERING ENGINE TO SHOW THE PAGE ON SCREEN

When you use JavaScript in the browser, there is a part of the browser that is called an interpreter (or scripting engine). 40 THE ABC OF PROGRAMMING The interpreter takes your instructions (in JavaScript) and translates them into instructions the browser can use to achieve the tasks you want it to perform. In an interpreted programming language, like JavaScript. each line of code is translated one-by-one as the script is run.