|
Most web browsers understand more than straight HTML (which is in essence a subset of XML). The most common of these extensions is CSS, which allows the author better control of the browser's presentation of the HTML.
Other extensions that can add interactivty of more complex features to pages (often referred to as client-side scripting) include:
However if the author wishes to maintain compatibility with the widest range of browsers, it is best to stick to standardised HTML as defined by the W3C.
Often, pages served to the browser will need to be active (i.e., generated on the fly, for example presenting contents of a database to a user). The important thing to remember is that the pages that arrive at the browser are still normal HTML. This is usually referred to as server-side scripting. Examples include:
Each webpage has a HTML header, and a body. The header is composed of elements. An element is also sometimes called a tag, and looks like this:
As you can see, all the elements end with another tag, apart from <br> which denotes a new line. If you typed that into a text editor and then saved it as "index" without the quote marks around it, you will have a new webpage all your own.
(see also HTML tag)
<i> </i> <-- These make writing between the two italics.
<b> </b> <-- These make writing between the two bold.
<font size="insert a number from 1-7" color="insert a color" align="choose left, center, or right"> </font>
But you should know, that where Internet Explorer, Mozilla, and the newer Netscape Navigator support written colours such as "red" and "blue", to be compatible and to get certain colors you must use a system called hexadecimal. White would be "#ffffff". Black is "#000000".
<img src="insert an image address here">
<object src="type an address" type="choose a type">
<a class=encyclopedia href="insert a webpage address">Write here what the link should say</a>
HTML is governed by the W3C, and the new standard is XHTML 1.1, which uses CSS, short for Cascading Style Sheets.
Search Encyclopedia
|
Featured Article
|