Professional Documents
Culture Documents
What Is An HTML File
What Is An HTML File
What Is An HTML File
Jump to: navigation, search "The Web" and "WWW" redirect here. For other uses, see Web and WWW (disambiguation). For the world's first browser, see WorldWideWeb. Internet Portal
WWW's historical logo designed by Robert Cailliau The World Wide Web (or simply the "Web") is a system of interlinked, hypertext documents that runs over the Internet. With a Web browser, a user views Web pa es that may contain text, ima es, and other multimedia and navi ates between them usin hyperlinks. The Web was created around !""# by the $ritish Tim $erners%&ee and the $el ian 'obert (ailliau workin at ()'* in +eneva, ,wit-erland. ,ince then, $erners%&ee has played an active role in uidin the development of Web standards (such as the markup lan ua es in which Web pa es are composed), and in recent years has advocated his vision of a ,emantic Web.
Contents
[hide]
1 Basic terms !o" the Web "or#s $ Caching % !istory & Web standards ' Java and Java(cript ) (ociological implications * +ublishing Web pages , (tatistics 1- (peed issues 11 .in# rot 1 /cademic con0erences 1$ WWW pre0i1 in Web addresses 1% +ronunciation o0 2"""2 1& (tandards 1' (ee also 1) Re0erences 1* 31ternal lin#s
o
1*41 Wi#iboo#s
!yperte1t: a 0ormat o0 in0ormation "hich allo"s, in a computer environment, one to move 0rom one part o0 a document to another or 0rom one document to another through internal connections among these documents 5called 2hyperlin#s267 Resource 8denti0iers: uni9ue identi0iers used to locate a particular resource 5computer 0ile, document or other resource6 on the net"or# : this is commonly #no"n as a ;R. or ;R8, although the t"o have subtle technical di00erences7 <he Client:server model o0 computing: a system in "hich client so0t"are or a client computer ma#es re9uests o0 server so0t"are or a server computer that provides the client "ith resources or services, such as data or 0iles7 and =ar#up language: characters or codes embedded in te1t "hich indicate structure, semantic meaning, or advice on presentation4
/n the World Wide Web, a client pro ram called a user a ent retrieves information resources, such as Web pa es and other computer files, from Web servers usin their 0'&s. If the user a ent is a kind of Web browser, it displays the resources on a user1s computer. The user can then follow hyperlinks in each web pa e to other World Wide Web resources, whose location is embedded in the hyperlinks. It is also possible, for example by fillin in and submittin web forms, to post information back to a Web server for it to save or process in some way. Web pa es are often arran ed in collections of related material called "Web sites." The act of followin hyperlinks from one Web site to another is referred to as "browsing" or sometimes as "surfing" the Web. The phrase "surfin the Internet" was first made popular in print by 2ean 3rmour 4olly, a librarian, in an article called ",urfin the I*T)'*)T", published in the 0niversity of 5innesota Wilson Library Bulletin in 2une !""6. 3lthou h 4olly may have developed the phrase independently, sli htly earlier uses of similar terms appeared on 0senet in !""! and !""6, and some recollections claim it was also used verbally in the hacker community for a couple years before that.
7!8
9or more information on the distinction between the World Wide Web and the Internet itself:as in everyday use the two are sometimes confused:see ;ark internet where this is discussed in more detail. 3lthou h the )n lish word worldwide is normally written as one word (without a space or hyphen), the proper name World Wide Web and abbreviation WWW are now well%established even in formal )n lish. The earliest references to the Web called it the WorldWideWeb (an example of computer pro rammers1 fondness for (amel(ase) or the World-Wide Web (with a hyphen, this version of the name is the closest to normal )n lish usa e).
Ironically, the abbreviation "WWW" is somewhat impractical in )n lish as it contains two or three times as many syllables (dependin on accent) as the full term "World Wide Web", and thus takes lon er to say. 5ost people now say "triple 1w1" instead of "w,w,w", makin the abbreviation shorter and easier to say.
Introduction to HTML
What is an HTML File?
=T5& stands for Hyper Text Markup Lan ua e 3n =T5& file is a text file containin small markup tags The markup ta s tell the Web browser how to displa 3n =T5& file must have an htm or html file extension 3n =T5& file can be created usin a simple te!t editor the pa e
<html> <head> <title>Title of page</title> </head> <body> This is my first homepage. <b>This text is bold</b> </body> </html>
,ave the file as "mypa e.htm". ,tart your Internet browser. ,elect "/pen" (or "/pen 4a e") in the 9ile menu of your browser. 3 dialo box will appear. ,elect "$rowse" (or "(hoose 9ile") and locate the =T5& file you Bust created % "mypa e.htm" % select it and click "/pen". *ow you should see an address in the dialo box, for example "(.C5y;ocumentsCmypa e.htm". (lick /D, and the browser will display the pa e.
%!ample %!plained
The first ta in your =T5& document is EhtmlF. This ta tells your browser that this is the start of an =T5& document. The last ta in your document is EGhtmlF. This ta tells your browser that this is the end of the =T5& document. The text between the EheadF ta and the EGheadF ta is header information. =eader information is not displayed in the browser window. The text between the EtitleF ta s is the title of your document. The title is displayed in your browser1s caption. The text between the EbodyF ta s is the text that will be displayed in your browser.
The text between the EbF and EGbF ta s will be displayed in a bold font.
HTML documents are te!t +iles made up o+ HTML elements. HTML elements are de+ined using HTML tags.
HTML Tags
=T5& ta s are used to mark%up =T5& elements =T5& ta s are surrounded by the two characters 0 and 1 The surroundin characters are called angle brackets =T5& ta s normally come in pairs like EbF and EGbF The first ta in a pair is the start tag- the second ta is the end tag The text between the start and end ta s is the element content =T5& ta s are not case sensiti,e- EbF means the same as E$F
HTML %lements
'emember the =T5& example from the previous pa e.
<html> <head> <title>Title of page</title> </head> <body> This is my first homepage. <b>This text is bold</b> </body> </html>
This is an =T5& element.
If you want to follow the latest web standards, you should always use lowercase ta s. The World Wide Web (onsortium (WI() recommends lowercase ta s in their =T5& J recommendation, and ?=T5& (the next eneration =T5&) demands lowercase ta s.
Tag )ttributes
Ta s can have attributes. 3ttributes provide additional information to an =T5& element. The followin ta defines an =T5& table. EtableF. With an added border attribute, you can tell the browser that the table should have no borders. Etable borderK"#"F 3ttributes always come in nameGvalue pairs like this. nameK"value". 3ttributes are always specified in the start ta of an =T5& element. 3ttributes and attribute values are also case%insensitive. =owever, the World Wide Web (onsortium (WI() recommends lowercase attributesGattribute values in their =T5& J recommendation, and ?=T5& demands lowercase attributesGattribute values.
The most important tags in HTML are tags that de+ine headings- paragraphs and line breaks. The best wa to learn HTML is to work with e!amples. We ha,e created a ,er nice HTML editor +or ou. With this editor- ou can edit the HTML source code i+ ou like- and click on a test button to ,iew the result.
Tr it #oursel+ 4 %!amples
3 very simple =T5& document This example is a very simple =T5& document, with only a minimum of =T5& ta s. It demonstrates how the text inside a body element is displayed in the browser.
,imple para raphs This example demonstrates how the text inside para raph elements is displayed in the browser. (@ou can find more examples at the bottom of this pa e)
Headings
=eadin s are defined with the Eh!F to EhLF ta s. Eh!F defines the lar est headin . EhLF defines the smallest headin .
is is is is is is
a a a a a a
=T5& automatically adds an extra blank line before and after a headin .
5aragraphs
4ara raphs are defined with the EpF ta .
Line Breaks
The EbrF ta is used when you want to end a line, but don1t want to start a new para raph. The EbrF ta forces a line break wherever you place it.
Comments in HTML
The comment ta is used to insert a comment in the =T5& source code. 3 comment will be i nored by the browser. @ou can use comments to explain your code, which can help you when you edit the source code at a later date.
=T5& will truncate the spaces in your text. 3ny number of spaces count as one. ,ome extra information. In =T5& a new line counts as one space. 0sin empty para raphs EpF to insert blank lines is a bad habit. 0se the EbrF ta instead. ($ut don1t use the EbrF ta to create lists. Wait until you have learned about =T5& lists.) @ou mi ht have noticed that para raphs can be written without the closin ta EGpF. ;on1t rely on it. The next version of =T5& will not allow you to skip 3*@ closin ta s. =T5& automatically adds an extra blank line before and after some elements, like before and after a para raph, and before and after a headin . We use a hori-ontal rule (the EhrF ta ), to separate the sections in our tutorials.
%!amples
Text formattin This example demonstrates how you can format text in an =T5& document. 4reformatted text This example demonstrates how you can control the line breaks and spaces with the pre ta . "(omputer output" ta s This example demonstrates how different "computer output" ta s will be displayed. 3ddress This example demonstrates how to write an address in an =T5& document. 3bbreviations and acronyms This example demonstrates how to handle an abbreviation or an acronym.
Text direction This example demonstrates how to chan e the text direction. Muotations This example demonstrates how to handle lon and short >uotations. ;eleted and inserted text This example demonstrates how to mark a text that is deleted or inserted to a document.
EdfnF
Character %ntities
,ome characters have a special meanin in =T5&, like the less than si n (E) that defines the start of an =T5& ta . If we want the browser to actually display these characters we must insert character entities in the =T5& source. 3 character entity has three parts. an ampersand (N), an entity name or a O and an entity number, and finally a semicolon (P). To display a less than si n in an =T5& document we must write. ;lt< or ;=>?< The advanta e of usin a name instead of a number is that a name is easier to remember. The disadvanta e is that not all browsers support the newest entity names, while the support for entity numbers is very ood in almost all browsers. &ote that the entities are case sensitive. This example lets you experiment with character entities. (haracter )ntities I) only
&on4breaking 6pace
The most common character entity in =T5& is the non%breakin space. *ormally =T5& will truncate spaces in your text. If you write !# spaces in your text =T5& will remove " of them. To add spaces to your text, use the NnbspP character entity.
HTML Links
HTML uses a h perlink to link to another document on the Web.
%!amples
(reate hyperlinks This example demonstrates how to create links in an =T5& document.
3n ima e as a link This example demonstrates how to use an ima e as a link. (@ou can find more examples at the bottom of this pa e)
To link directly to the "tips" section, add a O si n and the name of the anchor to the end of a 0'&, like this.
More %!amples
/pen a link in a new browser window This example demonstrates how to link to another pa e by openin a new window, so that the visitor does not have to leave your Web site. &ink to a location on the same pa e This example demonstrates how to use a link to Bump to another part of a document. $reak out of a frame This example demonstrates how to break out of a frame, if your site is locked in a frame. (reate a mailto link This example demonstrates how to link to a mail messa e (will only work if you have mail installed). (reate a mailto link 6 This example demonstrates a more complicated mailto link.
Link Tags
Tag EaF "escription ;efines an anchor
HTML Frames
With +rames- ou can displa more than one Web page in the same browser window.
%!amples
<ertical frameset This example demonstrates how to make a vertical frameset with three different documents. =ori-ontal frameset This example demonstrates how to make a hori-ontal frameset with three different documents. (@ou can find more examples at the bottom of this pa e)
Frames
With frames, you can display more than one =T5& document in the same browser window. )ach =T5& document is called a frame, and each frame is independent of the others. The disadvanta es of usin frames are.
The web developer must keep track of more =T5& documents It is difficult to print the entire pa e
In the example below we have a frameset with two columns. The first column is set to 6U] of the width of the browser window. The second column is set to WU] of the width of the browser window. The =T5& document "frame\a.htm" is put into the first column, and the =T5& document "frame\b.htm" is put into the second column.
More %!amples
=ow to use the EnoframesF ta This example demonstrates how to use the EnoframesF ta .
5ixed frameset This example demonstrates how to make a frameset with three documents, and how to mix them in rows and columns. 9rameset with noresi-eK"noresi-e" This example demonstrates the noresi-e attribute. The frames are not resi-able. 5ove the mouse over the borders between the frames and notice that you can not move the borders. *avi ation frame This example demonstrates how to make a navi ation frame. The navi ation frame contains a list of links with the second frame as the tar et. The file called "tryhtml\contents.htm" contains three links. The source code of the links. Ea href K"frame\a.htm" tar et K"showframe"F9rame aEGaFEbrF Ea href K"frame\b.htm" tar et K"showframe"F9rame bEGaFEbrF Ea href K"frame\c.htm" tar et K"showframe"F9rame cEGaF The second frame will show the linked document. Inline frame This example demonstrates how to create an inline frame (a frame inside an =T5& pa e). 2ump to a specified section within a frame This example demonstrates two frames. /ne of the frames has a source to a specified section in a file. The specified section is made with Ea nameK"(!#"F in the "link.htm" file. 2ump to a specified section with frame navi ation This example demonstrates two frames. The navi ation frame (content.htm) to the left contains a list of links with the second frame (link.htm) as a tar et. The second frame shows the linked document. /ne of the links in the navi ation frame is linked to a specified section in the tar et file. The =T5& code in the file "content.htm" looks like this. Ea href K"link.htm" tar et K"showframe"F&ink without 3nchorEGaFEbrFEa href K"link.htmO(!#" tar et K"showframe"F&ink with 3nchorEGaF.
Frame Tags
Tag EframesetF EframeF EnoframesF EiframeF "escription ;efines a set of frames ;efines a sub window (a frame) ;efines a noframe section for browsers that do not handle frames ;efines an inline sub window (frame)
HTML Tables
With HTML ou can create tables.
%!amples
Tables This example demonstrates how to create tables in an =T5& document.
Table borders This example demonstrates different table borders. (@ou can find more examples at the bottom of this pa e)
Tables
Tables are defined with the EtableF ta . 3 table is divided into rows (with the EtrF ta ), and each row is divided into data cells (with the EtdF ta ). The letters td stands for "table data," which is the content of a data cell. 3 data cell can contain text, ima es, lists, para raphs, forms, hori-ontal rules, tables, etc.
<table border$%1%> <tr> <td>row 10 #ell 1</td> <td>row 10 #ell 2</td> </tr> <tr> <td>row 20 #ell 1</td> <td>row 20 #ell 2</td> </tr> </table>
=ow it looks in a browser. row !, cell ! row !, cell 6 row 6, cell ! row 6, cell 6
<table border$%1%> <tr> <td>2ow 10 #ell 1</td> <td>2ow 10 #ell 2</td> </tr> </table>
Headings in a Table
=eadin s in a table are defined with the EthF ta .
<table border$%1%> <tr> <th>3eading</th> <th>4nother 3eading</th> </tr> <tr> <td>row 10 #ell 1</td> <td>row 10 #ell 2</td> </tr> <tr> <td>row 20 #ell 1</td> <td>row 20 #ell 2</td> </tr>
</table>
=ow it looks in a browser. Heading )nother Heading
<table border$%1%> <tr> <td>row 10 #ell 1</td> <td>row 10 #ell 2</td> </tr> <tr> <td>row 20 #ell 1</td> <td></td> </tr> </table>
=ow it looks in a browser. row !, cell ! row !, cell 6 row 6, cell ! *ote that the borders around the empty table cell are missin (*$A 5o-illa 9irefox displays the border). To avoid this, add a non%breakin space (NnbspP) to empty data cells, to make the borders visible.
<table border$%1%> <tr> <td>row 10 #ell 1</td> <td>row 10 #ell 2</td> </tr> <tr> <td>row 20 #ell 1</td> <td>5nbsp6</td> </tr> </table>
=ow it looks in a browser. row !, cell ! row !, cell 6 row 6, cell !
More %!amples
Table with no border This example demonstrates a table with no borders. =eadin s in a table This example demonstrates how to display table headers. )mpty cells This example demonstrates how to use "NnbspP" to handle cells that have no content. Table with a caption This example demonstrates a table with a caption. Table cells that span more than one rowGcolumn This example demonstrates how to define table cells that span more than one row or one column. Ta s inside a table This example demonstrates how to display elements inside other elements. (ell paddin This example demonstrates how to use cellpaddin to create more white space between the cell content and its borders. (ell spacin This example demonstrates how to use cellspacin to increase the distance between the cells. 3dd a back round color or a back round ima e to a table This example demonstrates how to add a back round to a table. 3dd a back round color or a back round ima e to a table cell This example demonstrates how to add a back round to one or more table cells. 3li n the content in a table cell This example demonstrates how to use the "ali n" attribute to ali n the content of cells, to create a "nice%lookin " table. The frame attribute This example demonstrates how to use the "frame" attribute to control the borders around the table. The frame and border attributes =ow to use the "frame" and "border" attributes to control the borders around the table.
Table Tags
Tag EtableF EthF EtrF EtdF EcaptionF Ecol roupF EcolF EtheadF EtbodyF EtfootF "escription ;efines a table ;efines a table header ;efines a table row ;efines a table cell ;efines a table caption ;efines roups of table columns ;efines the attribute values for one or more columns in a table ;efines a table head ;efines a table body ;efines a table footer
HTML Lists
HTML supports ordered- unordered and de+inition lists.
%!amples
3n unordered list This example demonstrates an unordered list. 3n ordered list This example demonstrates an ordered list. (@ou can find more examples at the bottom of this pa e)
2nordered Lists
3n unordered list is a list of items. The list items are marked with bullets (typically small black circles). 3n unordered list starts with the EulF ta . )ach list item starts with the EliF ta .
(offee 5ilk
Inside a list item you can put para raphs, line breaks, ima es, links, other lists, etc.
8rdered Lists
3n ordered list is also a list of items. The list items are marked with numbers. 3n ordered list starts with the EolF ta . )ach list item starts with the EliF ta .
Inside a list item you can put para raphs, line breaks, ima es, links, other lists, etc.
"e+inition Lists
3 definition list is not a list of items. This is a list of terms and explanation of the terms. 3 definition list starts with the EdlF ta . )ach definition%list term starts with the EdtF ta . )ach definition%list definition starts with the EddF ta .
<dl> <dt>7offee</dt> <dd>9la# hot drin </dd> <dt>8il </dt> <dd>)hite #old drin </dd> </dl>
=ere is how it looks in a browser. (offee 5ilk $lack hot drink White cold drink Inside a definition%list definition (the EddF ta ) you can put para raphs, line breaks, ima es, links, other lists, etc.
More %!amples
;ifferent types of ordered lists This example demonstrates different types of ordered lists. ;ifferent types of unordered &ists This example demonstrates different types of unordered lists. *ested list This example demonstrates how you can nest lists. *ested list 6 This example demonstrates a more complicated nested list. ;efinition list This example demonstrates a definition list.
List Tags
Tag EolF EulF "escription ;efines an ordered list ;efines an unordered list
;efines a list item ;efines a definition list ;efines a definition term ;efines a definition description ;eprecated. 0se EulF instead ;eprecated. 0se EulF instead
%!amples
Text fields This example demonstrates how to create text fields on an =T5& pa e. 3 user can write text in a text field. 4assword fields This example demonstrates how to create a password field on an =T5& pa e. (@ou can find more examples at the bottom of this pa e)
Forms
3 form is an area that can contain form elements. 9orm elements are elements that allow the user to enter information (like text fields, textarea fields, drop%down menus, radio buttons, checkboxes, etc.) in a form. 3 form is defined with the EformF ta .
$nput
The most used form ta is the EinputF ta . The type of input is specified with the type attribute. The most commonly used input types are explained below.
Text Fields
Text fields are used when you want the user to type letters, numbers, etc. in a form.
<form> :irst name' <inp&t type$%text% name$%firstname%> <br> ;ast name' <inp&t type$%text% name$%lastname%> </form>
=ow it looks in a browser.
9irst name. &ast name. *ote that the form itself is not visible. 3lso note that in most browsers, the width of the text field is 6# characters by default.
Radio Buttons
'adio $uttons are used when you want the user to select one of a limited number of choices.
<form> <inp&t type$%radio% name$%sex% <al&e$%male%> 8ale <br> <inp&t type$%radio% name$%sex% <al&e$%female%> :emale </form>
=ow it looks in a browser.
Checkboxes
(heckboxes are used when you want the user to select one or more options of a limited number of choices.
<form> = ha<e a bi e' <inp&t type$%#he# box% name$%<ehi#le% <al&e$%9i e% /> <br /> = ha<e a #ar' <inp&t type$%#he# box% name$%<ehi#le% <al&e$%7ar% /> <br /> = ha<e an airplane' <inp&t type$%#he# box% name$%<ehi#le% <al&e$%4irplane% /> </form>
=ow it looks in a browser.
<form name$%inp&t% a#tion$%html+form+a#tion.asp% method$%get%> ,sername' <inp&t type$%text% name$%&ser%> <inp&t type$%s&bmit% <al&e$%*&bmit%> </form>
=ow it looks in a browser.
Submit
0sername.
If you type some characters in the text field above, and click the ",ubmit" button, you will send your input to a pa e called "html\form\action.asp". That pa e will show you the received input.
More %!amples
(heckboxes This example demonstrates how to create check%boxes on an =T5& pa e. 3 user can select or unselect a checkbox. 'adio buttons This example demonstrates how to create radio%buttons on an =T5& pa e. ,imple drop down box This example demonstrates how to create a simple drop%down box on an =T5& pa e. 3 drop%down box is a selectable list. 3nother drop down box This example demonstrates how to create a simple drop%down box with a pre%selected value. Textarea This example demonstrates how to create a text%area (a multi%line text input control). 3 user can write text in the text%area. In a text%area you can write an unlimited number of characters. (reate a button This example demonstrates how to create a button. /n the button you can define your own text. 9ieldset around data This example demonstrates how to draw a border with a caption around your data.
Form %!amples
9orm with input fields and a submit button This example demonstrates how to add a form to a pa e. The form contains two input fields and a submit button. 9orm with checkboxes This form contains two checkboxes, and a submit button.
9orm with radio buttons This form contains two radio buttons, and a submit button. ,end e%mail from a form This example demonstrates how to send e%mail from a form.
Form Tags
Tag EformF EinputF EtextareaF ElabelF EfieldsetF Ele endF EselectF Eopt roupF EoptionF EbuttonF EisindexF "escription ;efines a form for user input ;efines an input field ;efines a text%area (a multi%line text input control) ;efines a label to a control ;efines a fieldset ;efines a caption for a fieldset ;efines a selectable list (a drop%down box) ;efines an option roup ;efines an option in the drop%down box ;efines a push button ;eprecated. 0se EinputF instead
HTML Images
With HTML ou can displa images in a document.
%!amples
Insert ima es This example demonstrates how to display ima es in your Web pa e. Insert ima es from different locations This example demonstrates how to display ima es from another folder or another server in your Web pa e. (@ou can find more examples at the bottom of this pa e)
To display an ima e on a pa e, you need to use the src attribute. ,rc stands for "source". The value of the src attribute is the 0'& of the ima e you want to display on your pa e. The syntax of definin an ima e.
<img sr#$%&rl%>
The 0'& points to the location where the ima e is stored. 3n ima e named "boat. if" located in the directory "ima es" on "www.wIschools.com" has the 0'&. http.GGwww.wIschools.comGima esGboat. if. The browser puts the ima e where the ima e ta occurs in the document. If you put an ima e ta between two para raphs, the browser shows the first para raph, then the ima e, and then the second para raph.
More %!amples
$ack round ima e This example demonstrates how to add a back round ima e to an =T5& pa e. 3li nin ima es This example demonstrates how to ali n an ima e within the text. &et the ima e float This example demonstrates how to let an ima e float to the left or ri ht of a para raph. 3dBust ima es to different si-es This example demonstrates how to adBust ima es to different si-es. ;isplay an alternate text for an ima e This example demonstrates how to display an alternate text for an ima e. The "alt" attribute tells the reader what he or she is missin on a pa e if the browser can1t load ima es. It is a ood practice to include the "alt" attribute for each ima e on a pa e. 5ake a hyperlink of an ima e This example demonstrates how to use an ima e as a link. (reate an ima e map This example demonstrates how to create an ima e map, with clickable re ions. )ach of the re ions is a hyperlink.
Turn an ima e into an ima e map This example demonstrates how to turn an ima e into an ima e map. @ou will see that if you move the mouse over the ima e, the coordinates will be displayed on the status bar.
$mage Tags
Tag Eim F EmapF EareaF "escription ;efines an ima e ;efines an ima e map ;efines a clickable area inside an ima e map
HTML Backgrounds
) good background can make a Web site look reall great.
%!amples
+ood back round and text color 3n example of a back round color and a text color that makes the text on the pa e easy to read. $ad back round and text color 3n example of a back round color and a text color that makes the text on the pa e difficult to read. (@ou can find more examples at the bottom of this pa e)
Backgrounds
The EbodyF ta has two attributes where you can specify back rounds. The back round can be a color or an ima e.
Bgcolor
The b color attribute specifies a back round%color for an =T5& pa e. The value of this attribute can be a hexadecimal number, an '+$ value, or a color name.
Background
The back round attribute specifies a back round%ima e for an =T5& pa e. The value of this attribute is the 0'& of the ima e you want to use. If the ima e is smaller than the browser window, the ima e will repeat itself until it fills the entire browser window.
Will the back round ima e increase the loadin time too muchH Will the back round ima e look ood with other ima es on the pa eH Will the back round ima e look ood with the text colors on the pa eH Will the back round ima e look ood when it is repeated on the pa eH Will the back round ima e take away the focus from the textH
More %!amples
+ood back round ima e 3n example of a back round ima e and a text color that makes the text on the pa e easy to read. +ood back round ima e 6 3n example of a back round ima e and a text color that makes the text on the pa e easy to read. $ad back round ima e 3n example of a back round ima e and a text color that makes the text on the pa e very difficult to read.
Computer Aoke
6upport' "Type dir, space, a, colon." Customer' "With a space after 1space1H"
HTML Colors
Colors are displa ed combining @%"- B@%%&- and BL2% light sources.
Color 3alues
=T5& colors can be defined as a hexadecimal notation for the combination of 'ed, +reen, and $lue color values ('+$). The lowest value that can be iven to one li ht source is # (hex O##) and the hi hest value is 6UU (hex O99). The table below shows the result of combinin 'ed, +reen, and $lue li ht sources.. Color Color H%C O###### O99#### O##99## O####99 O9999## O##9999 O99##99 O(#(#(# Color @BB r b(#,#,#) r b(6UU,#,#) r b(#,6UU,#) r b(#,#,6UU) r b(6UU,6UU,#) r b(#,6UU,6UU) r b(6UU,#,6UU) r b(!"6,!"6,!"6)
O999999
r b(6UU,6UU,6UU)
((#### ((II## ((LL## ((""## ((((## ((99## 99#### 99II## 99LL## 99""## 99((## 9999##
((##II ((IIII ((LLII ((""II ((((II ((99II 99##II 99IIII 99LLII 99""II 99((II 9999II
((##LL ((IILL ((LLLL ((""LL ((((LL ((99LL 99##LL 99IILL 99LLLL 99""LL 99((LL 9999LL
((##"" ((II"" ((LL"" (("""" (((("" ((99"" 99##"" 99II"" 99LL"" 99"""" 99(("" 9999""
((##(( ((II(( ((LL(( ((""(( (((((( ((99(( 99##(( 99II(( 99LL(( 99""(( 99(((( 9999((
((##99 ((II99 ((LL99 ((""99 ((((99 ((9999 99##99 99II99 99LL99 99""99 99((99 999999
Color 3alues
=T5& colors are defined usin a hexadecimal notation for the combination of 'ed, +reen, and $lue color values ('+$). The lowest value that can be iven to one of the li ht sources is # (hex O##). The hi hest value is 6UU (hex O99).
6hades o+ Bra
+ray colors are displayed usin an e>ual amount of power to all of the li ht sources. To make it easier for you to select the ri ht ray color we have compiled a table of ray shades for you. '+$(#,#,#) O######
'+$(Q,Q,Q) '+$(!L,!L,!L) '+$(6J,6J,6J) '+$(I6,I6,I6) '+$(J#,J#,J#) '+$(JQ,JQ,JQ) '+$(UL,UL,UL) '+$(LJ,LJ,LJ) '+$(W6,W6,W6) '+$(Q#,Q#,Q#) '+$(QQ,QQ,QQ) '+$("L,"L,"L) '+$(!#J,!#J,!#J) '+$(!!6,!!6,!!6) '+$(!6#,!6#,!6#) '+$(!6Q,!6Q,!6Q) '+$(!IL,!IL,!IL) '+$(!JJ,!JJ,!JJ) '+$(!U6,!U6,!U6) '+$(!L#,!L#,!L#) '+$(!LQ,!LQ,!LQ) '+$(!WL,!WL,!WL) '+$(!QJ,!QJ,!QJ) '+$(!"6,!"6,!"6) '+$(6##,6##,6##) '+$(6#Q,6#Q,6#Q) '+$(6!L,6!L,6!L) '+$(66J,66J,66J) '+$(6I6,6I6,6I6) '+$(6J#,6J#,6J#) '+$(6JQ,6JQ,6JQ) '+$(6UU,6UU,6UU)
O#Q#Q#Q O!#!#!# O!Q!Q!Q O6#6#6# O6Q6Q6Q OI#I#I# OIQIQIQ OJ#J#J# OJQJQJQ OU#U#U# OUQUQUQ OL#L#L# OLQLQLQ OW#W#W# OWQWQWQ OQ#Q#Q# OQQQQQQ O"#"#"# O"Q"Q"Q O3#3#3# O3Q3Q3Q O$#$#$# O$Q$Q$Q O(#(#(# O(Q(Q(Q O;#;#;# O;Q;Q;Q O)#)#)# O)Q)Q)Q O9#9#9# O9Q9Q9Q O999999
red, silver, teal, white, and yellow. If you want to use other colors, you must specify their '+$ or =)? value. (lick on a color name (or a hex value) to view the color as the back round%color alon with different text colors. Color &ame 3lice$lue 3nti>ueWhite 3>ua 3>uamarine 3-ure $ei e $is>ue $lack $lanched3lmond $lue $lue<iolet $rown $urlyWood (adet$lue (hartreuse (hocolate (oral (ornflower$lue (ornsilk (rimson (yan ;ark$lue ;ark(yan ;ark+olden'od ;ark+ray ;ark+rey ;ark+reen ;arkDhaki ;ark5a enta ;ark/live+reen ;arkoran e ;ark/rchid ;ark'ed ;ark,almon ;ark,ea+reen ;ark,late$lue ;ark,late+ray ;ark,late+rey ;arkTur>uoise ;ark<iolet ;eep4ink ;eep,ky$lue ;im+ray ;im+rey ;od er$lue 9ire$rick 9loralWhite Color H%C O9#9Q99 O93)$;W O##9999 OW999;J O9#9999 O9U9U;( O99)J(J O###### O99)$(; O####99 OQ36$)6 O3U6363 O;)$QQW OU9")3# OW999## O;6L"!) O99W9U# OLJ"U); O999Q;( O;(!JI( O##9999 O####Q$ O##Q$Q$ O$QQL#$ O3"3"3" O3"3"3" O##LJ## O$;$WL$ OQ$##Q$ OUUL$69 O99Q(## O""I6(( OQ$#### O)""LW3 OQ9$(Q9 OJQI;Q$ O69J9J9 O69J9J9 O##();! O"J##;I O99!J"I O##$999 OL"L"L" OL"L"L" O!)"#99 O$66666 O99939# Color
9orest+reen 9uchsia +ainsboro +hostWhite +old +olden'od +ray +rey +reen +reen@ellow =oney;ew =ot4ink Indian'ed Indi o Ivory Dhaki &avender &avender$lush &awn+reen &emon(hiffon &i ht$lue &i ht(oral &i ht(yan &i ht+olden'od@ellow &i ht+ray &i ht+rey &i ht+reen &i ht4ink &i ht,almon &i ht,ea+reen &i ht,ky$lue &i ht,late+ray &i ht,late+rey &i ht,teel$lue &i ht@ellow &ime &ime+reen &inen 5a enta 5aroon 5edium3>ua5arine 5edium$lue 5edium/rchid 5edium4urple 5edium,ea+reen 5edium,late$lue 5edium,prin +reen 5ediumTur>uoise 5edium<iolet'ed 5idni ht$lue 5int(ream 5isty'ose 5occasin
O66Q$66 O99##99 O;(;(;( O9Q9Q99 O99;W## O;33U6# OQ#Q#Q# OQ#Q#Q# O##Q### O3;9969 O9#999# O99L"$J O(;U(U( OJ$##Q6 O99999# O9#)LQ( O)L)L93 O999#9U OW(9(## O9993(; O3;;Q)L O9#Q#Q# O)#9999 O9393;6 O;I;I;I O;I;I;I O"#))"# O99$L(! O993#W3 O6#$633 OQW()93 OWWQQ"" OWWQQ"" O$#(J;) O9999)# O##99## OI6(;I6 O939#)L O99##99 OQ##### OLL(;33 O####(; O$3UU;I O"IW#;Q OI($IW! OW$LQ)) O##93"3 OJQ;!(( O(W!UQU O!"!"W# O9U9993 O99)J)! O99)J$U
*avaBoWhite *avy /ld&ace /live /live;rab /ran e /ran e'ed /rchid 4ale+olden'od 4ale+reen 4aleTur>uoise 4ale<iolet'ed 4apayaWhip 4each4uff 4eru 4ink 4lum 4owder$lue 4urple 'ed 'osy$rown 'oyal$lue ,addle$rown ,almon ,andy$rown ,ea+reen ,ea,hell ,ienna ,ilver ,ky$lue ,late$lue ,late+ray ,late+rey ,now ,prin +reen ,teel$lue Tan Teal Thistle Tomato Tur>uoise <iolet Wheat White White,moke @ellow @ellow+reen
O99;)3; O####Q# O9;9U)L OQ#Q### OL$Q)6I O993U## O99JU## O;3W#;L O)))Q33 O"Q9$"Q O39)))) O;QW#"I O99)9;U O99;3$" O(;QUI9 O99(#($ O;;3#;; O$#)#)L OQ###Q# O99#### O$(Q9Q9 OJ!L")! OQ$JU!I O93Q#W6 O9J3JL# O6)Q$UW O999U)) O3#U66; O(#(#(# OQW())$ OL3U3(; OW#Q#"# OW#Q#"# O999393 O##99W9 OJLQ6$J O;6$JQ( O##Q#Q# O;Q$9;Q O99LIJW OJ#)#;# O))Q6)) O9U;)$I O999999 O9U9U9U O9999## O"3(;I6
Heading Elements
Eh!F&ar est =eadin EGh!F Eh6F EhIF EhJF EhUF . . . . . . . . . . . . EGh6F EGhIF EGhJF EGhUF
Text Elements
EpFThis is a para raphEGpF EbrF (line break) EhrF (hori-ontal rule) EpreFThis text is preformattedEGpreF
Logical (t)les
EemFThis text is emphasi-edEGemF Estron FThis text is stron EGstron F EcodeFThis is some computer codeEGcodeF
*h)sical (t)les
EbFThis text is boldEGbF EiFThis text is italicEGiF
-nordered list
EulF EliF9irst itemEGliF EliF*ext itemEGliF EGulF
.rdered list
EolF EliF9irst itemEGliF EliF*ext itemEGliF EGolF
'e/inition list
EdlF EdtF9irst termEGdtF EddF;efinitionEGddF EdtF*ext termEGdtF EddF;efinitionEGddF EGdlF
Tables
Etable borderK"!"F EtrF EthFsomeheaderEGthF EthFsomeheaderEGthF EGtrF EtrF EtdFsometextEGtdF EtdFsometextEGtdF EGtrF EGtableF
Frames
Eframeset colsK"6U],WU]"F Eframe srcK"pa e!.htm"F Eframe srcK"pa e6.htm"F EGframesetF
Forms
Eform actionK"http.GGwww.example.comGtest.asp" methodK"postG et"F Einput Einput Einput Einput Einput Einput Einput typeK"text" nameK"lastname" valueK"*ixon" si-eK"I#" maxlen thK"U#"F typeK"password"F typeK"checkbox" checkedK"checked"F typeK"radio" checkedK"checked"F typeK"submit"F typeK"reset"F typeK"hidden"F
EselectF EoptionF3pples Eoption selectedF$ananas EoptionF(herries EGselectF Etextarea nameK"(omment" rowsK"L#" colsK"6#"FEGtextareaF EGformF
Entities
NltP is the same as E N tP is the same as F NO!L"P is the same as X
.ther Elements
EA%% This is a comment %%F Eblock>uoteF Text >uoted from some source. EGblock>uoteF EaddressF 3ddress !EbrF 3ddress 6EbrF (ityEbrF EGaddressF 6ource ' http'FFwww.wDschools.comFhtmlFhtmlG(uick.asp
EareaF EbF EbaseF EbasefontF EbdoF Ebi F Eblock>uoteF EbodyF EbrF EbuttonF EcaptionF EcenterF EciteF EcodeF EcolF Ecol roupF EddF EdelF EdirF EdivF EdfnF EdlF EdtF EemF EfieldsetF EfontF EformF EframeF EframesetF Eh!F to EhLF EheadF EhrF EhtmlF EiF EiframeF Eim F EinputF EinsF EisindexF EkbdF ElabelF Ele endF EliF ElinkF EmapF EmenuF EmetaF EnoframesF EnoscriptF EobBectF EolF Eopt roupF EoptionF
;efines an area inside an ima e map ;efines bold text ;efines a base 0'& for all the links in a pa e ;eprecated. ;efines a base font ;efines the direction of text display ;efines bi text ;efines a lon >uotation ;efines the body element Inserts a sin le line break ;efines a push button ;efines a table caption ;eprecated. ;efines centered text ;efines a citation ;efines computer code text ;efines attributes for table columns ;efines roups of table columns ;efines a definition description ;efines deleted text ;eprecated. ;efines a directory list ;efines a section in a document ;efines a definition term ;efines a definition list ;efines a definition term ;efines emphasi-ed text ;efines a fieldset ;eprecated. ;efines text font, si-e, and color ;efines a form ;efines a sub window (a frame) ;efines a set of frames ;efines header ! to header L ;efines information about the document ;efines a hori-ontal rule ;efines an html document ;efines italic text ;efines an inline sub window (frame) ;efines an ima e ;efines an input field ;efines inserted text ;eprecated. ;efines a sin le%line input field ;efines keyboard text ;efines a label for a form control ;efines a title in a fieldset ;efines a list item ;efines a resource reference ;efines an ima e map ;eprecated. ;efines a menu list ;efines meta information ;efines a noframe section ;efines a noscript section ;efines an embedded obBect ;efines an ordered list ;efines an option roup ;efines an option in a drop%down list
I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# T9 L.6 U.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 L.6 J.# ,T9 I.# I.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# I.# ,T9 I.# ,T9 I.# ,T9 I.# I.# ,T9 L.6 J.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 L.6 J.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# I.# 9 I.# I.# 9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 L.# J.# T9 I.# I.# ,T9 I.# I.# ,T9 L.6 J.# ,T9 I.# I.# T9 I.# I.# ,T9 L.6 J.# ,T9 L.6 J.# ,T9 I.# I.# ,T9 J.# I.# ,T9 I.# I.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# ,T9 I.# I.# ,T9 L.# L.# ,T9 I.# I.# ,T9
EpF EparamF EpreF E>F EsF EsampF EscriptF EselectF EsmallF EspanF EstrikeF Estron F EstyleF EsubF EsupF EtableF EtbodyF EtdF EtextareaF EtfootF EthF EtheadF EtitleF EtrF EttF EuF EulF EvarF ExmpF
;efines a para raph ;efines a parameter for an obBect ;efines preformatted text ;efines a short >uotation ;eprecated. ;efines strikethrou h text ;efines sample computer code ;efines a script ;efines a selectable list ;efines small text ;efines a section in a document ;eprecated. ;efines strikethrou h text ;efines stron text ;efines a style definition ;efines subscripted text ;efines superscripted text ;efines a table ;efines a table body ;efines a table cell ;efines a text area ;efines a table footer ;efines a table header ;efines a table header ;efines the document title ;efines a table row ;efines teletype text ;eprecated. ;efines underlined text ;efines an unordered list ;efines a variable ;eprecated. ;efines preformatted text
I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 L.6 ,T9 I.# I.# T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 J.# I.# ,T9 I.# I.# T9 I.# I.# ,T9 J.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 J.# ,T9 I.# I.# ,T9 I.# I.# ,T9 J.# ,T9 I.# I.# ,T9 J.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.# T9 I.# I.# ,T9 I.# I.# ,T9 I.# I.#
The WWW is a network of computers all over the world. The WWW is most often called the Web. The computers on the Web communicate usin standard protocols and lan ua es. The WI( (The World Wide Web (onsortium) are makin the rules and standards for the Web. ,tudy our WWW 4rimer
To be able to deliver more dynamic web site content, you should teach yourself server%side scriptin . With server%side scriptin , you can (amon st many other thin s) access databases and return the results to a browser. ,tudy our ,criptin 4rimer or ,tudy our (omplete 3,4 tutorial, or our (omplete 4=4 tutorial.
Core )ttributes
*ot valid in base, head, html, meta, param, script, style, and title elements. )ttribute class id style title 3alue class_rule or style_rule id_name style_definition tooltip_text "escription The class of the element 3 uni>ue id for the element 3n inline style definition 3 text to display in a tool tip
Language )ttributes
*ot valid in base, br, frame, frameset, hr, iframe, param, and script elements. )ttribute dir lan 3alue ltr ` rtl language_code "escription ,ets the text direction ,ets the lan ua e code
He board )ttributes
)ttribute accesskey tabindex 3alue character number "escription ,ets a keyboard shortcut to access an element ,ets the tab order of an element
Introduction to 1ML
CML was designed to describe data and to +ocus on what data is. HTML was designed to displa data and to +ocus on how data looks.
If you want to study these subBects first, find the tutorials on our =ome pa e.
What is CML?
?5& stands for )Ctensible Markup Lan ua e ?5& is a markup language much like =T5& ?5& was desi ned to describe data ?5& ta s are not predefined. @ou must de+ine our own tags ?5& uses a "ocument T pe "e+inition (;T;) or an CML 6chema to describe the data ?5& with a ;T; or ?5& ,chema is desi ned to be sel+4descripti,e ?5& is a WI( 'ecommendation
CML was designed to carr data. ?5& is not a replacement for =T5&. ?5& and =T5& were desi ned with different oals. ?5& was desi ned to describe data and to focus on what data is. =T5& was desi ned to display data and to focus on how data looks. =T5& is about displayin information, while ?5& is about describin information.
<note> <to>To<e</to> <from>.ani</from> <heading>2eminder</heading> <body>AonBt forget me this wee end!</body> </note>
The note has a header and a messa e body. It also has sender and receiver information. $ut still, this ?5& document does not ;/ anythin . It is Bust pure information wrapped in ?5& ta s. ,omeone must write a piece of software to send, receive or display it.
We have been participatin in ?5& development since its creation. It has been ama-in to see how >uickly the ?5& standard has been developed and how >uickly a lar e number of software vendors have adopted the standard. We stron ly believe that ?5& will be as important to the future of the Web as =T5& has been to the foundation of the Web and that ?5& will be the most common tool for all data manipulation and data transmission.
Introduction To 1HTML
CHTML is a stricter and cleaner ,ersion o+ HTML.
If you want to study =T5& first, please read our =T5& tutorial.
What $s CHTML?
?=T5& stands for )Ctensible HyperText Markup Lan ua e ?=T5& is aimed to replace =T5& ?=T5& is almost identical to =T5& J.#! ?=T5& is a stricter and cleaner version of =T5& ?=T5& is =T5& defined as an CML application ?=T5& is a WI( 'ecommendation
Why you should use ?=T5& The syntax of ?=T5& =ow WI,chools was converted to ?=T5& ?=T5& validation ?=T5& modulari-ation
J. Who is making the Web standards? The World Wide Web (onsortium 5icrosoft *etscape
D. Choose the correct HTML tag +or the largest heading Eheadin F EheadF Eh!F
EhLF
K. What is the correct HTML tag +or inserting a line break? EbrF ElbF EbreakF
L. What is the correct HTML +or adding a background color? Eback roundFyellowEGback roundF Ebody colorK"yellow"F Ebody b colorK"yellow"F
>. Choose the correct HTML tag to make a te!t bold EbF EbldF EbbF EboldF
M. Choose the correct HTML tag to make a te!t italic EiiF EitalicsF EiF
N. What is the correct HTML +or making a h perlink? Ea nameK"http.GGwww.wIschools.com"FWI,chools.comEGaF EaFhttp.GGwww.wIschools.comEGaF Ea urlK"http.GGwww.wIschools.com"FWI,chools.comEGaF Ea hrefK"http.GGwww.wIschools.com"FWI,choolsEGaF
O. How can
Email hrefK"xxx^yyy"F
E?. How can ou open a link in a new browser window? Ea hrefK"url" newF Ea hrefK"url" tar etK"\blank"F Ea hrefK"url" tar etK"new"F
EE. Which o+ these tags are all 0table1 tags? EtableFEtrFEttF EtableFEheadFEtfootF EtableFEtrFEtdF EtheadFEbodyFEtrF
EJ. Choose the correct HTML to le+t4align the content inside a tablecell Etd ali nK"left"F EtdleftF Etd leftali nF Etd vali nK"left"F
ED. How can ou make a list that lists the items with numbers? EulF EdlF ElistF EolF
EK. How can ou make a list that lists the items with bullets? ElistF EdlF EulF EolF
EL. What is the correct HTML +or making a checkbo!? Einput typeK"check"F EcheckboxF
E>. What is the correct HTML +or making a te!t input +ield? Etextinput typeK"text"F Einput typeK"text"F Einput typeK"textfield"F EtextfieldF
EM. What is the correct HTML +or making a drop4down list? EselectF Einput typeK"dropdown"F Einput typeK"list"F ElistF
EN. What is the correct HTML +or making a te!t area? Einput typeK"textbox"F EtextareaF Einput typeK"textarea"F
EO. What is the correct HTML +or inserting an image? Eim Fima e. ifEGim F Eim hrefK"ima e. ifF Eim srcK"ima e. if"F Eima e srcK"ima e. if"F
J?. What is the correct HTML +or inserting a background image? Ebody back roundK"back round. if"F Eim srcK"back round. if" back roundF Eback round im K"back round. if"F
Web Building
%,er
HTML K.?E
=T5& J.#! The use of (,, (style sheets) ?=T5& ?5& and ?,&T (lient side scriptin ,erver side scriptin 5ana in data with ,M& The future of the Web
=T5& is the lan ua e of the Web, and every Web developer should have a basic understandin of it. =T5& J.#! is an important Web standard. and very different from =T5& I.6. When ta s like EfontF and color attributes were added to =T5& I.6, it started a developer1s ni htmare. ;evelopment of web sites where font information must be added to every sin le Web pa e is a lon and expensive pain. With =T5& J.#! all formattin can be moved out of the =T5& document and into a separate style sheet. =T5& J.#! is also important because ?=T5& !.# (the latest =T5& standard) is =T5& J.#! "reformulated" as an ?5& application. 0sin =T5& J.#! in your pa es makes the future up rade from =T5& to ?=T5& a very simple process. 5ake sure you use the latest =T5& J.#! standard. ,tudy our (omplete =T5& J.#! reference.
The )xtensible 5arkup &an ua e (?5&) is &8T a replacement for =T5&. In future Web development, ?5& will be used to describe and carry the data, while =T5& will be used to display the data. /ur best description of ?5& is as a cross%platform, software% and hardware%independent tool for storin and transmittin information. We believe that ?5& is as important to the Web as =T5& was to the foundation of the Web and that ?5& will be the most common tool for all data manipulation and data transmission. 5ake sure you study our ?5& tutorial.
Client46ide 6cripting
(lient%side scriptin is about "pro rammin " the behavior of an Internet browser. To be able to deliver more dynamic web site content, you should teach yourself 2ava,cript.
Aa,a6cript gi,es HTML designers a programming tool 4 =T5& authors are normally not pro rammers, but 2ava,cript is a scriptin lan ua e with a very simple syntaxA 3lmost anyone can put small "snippets" of code into their =T5& pa es. Aa,a6cript can put d namic te!t into an HTML page 4 3 2ava,cript statement like this. document.write("Eh!F" _ name _ "EGh!F") can write a variable text into an =T5& pa e. Aa,a6cript can react to e,ents 4 3 2ava,cript can be set to execute when somethin happens, like when a pa e has finished loadin or when a user clicks on an =T5& element. Aa,a6cript can read and write HTML elements 4 3 2ava,cript can read and chan e the content of an =T5& element. Aa,a6cript can be used to ,alidate data 4 3 2ava,cript can be used to validate form data before it is submitted to a server, this will save the server from extra processin .
6er,er46ide 6cripting
,erver%side scriptin is about "pro rammin " an Internet server. To be able to deliver more dynamic web site content, you should teach yourself server%side scriptin . With server%side scriptin , you can.
;ynamically edit, chan e, or add any content of a Web pa e 'espond to user >ueries or data submitted from =T5& forms 3ccess any data or databases and return the results to a browser 3ccess any files or ?5& data and return the results to a browser Transform ?5& data to =T5& data and return the results to a browser (ustomi-e a Web pa e to make it more useful for individual users
4rovide security and access control to different Web pa es Tailor your output to different types of browsers 5inimi-e the network traffic )cti,e 6er,er 5ages 9)65: and
3t WI,chools we demonstrate server%side scriptin by usin 5H5' H perte!t 5reprocessor 95H5:. 5ake sure you study our 3,4 tutorial or our 4=4 tutorial.
WWW *rimer
What is the WWW? How does it work? What is a browser? What is a ser,er?