HTML Book
HTML Book
A form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and
more. A form can also contain select lists, text area, field set, legend, and label elements.
<form>
.
input elements
.
</form>
An input element can vary in many ways, depending on the type attribute. An input element can
be of type text field, checkbox, password, radio button, submit button, and more.
Text Fields
<input type="text" /> defines a one-line input field that a user can enter text into:
<form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
First name:
Last name:
Note: The form itself is not visible. Also note that the default width of a text field is 20
characters.
Password Field
<input type="password" /> defines a password field:
<form>
Password: <input type="password" name="pwd" />
</form>
Password:
Note: The characters in a password field are masked (shown as asterisks or circles).
Radio Buttons
<input type="radio" /> defines a radio button. Radio buttons let a user select ONLY ONE one of
a limited number of choices:
<form>
<input type="radio" name="sex" value="male" /> Male<br />
<input type="radio" name="sex" value="female" /> Female
</form>
Male
Female
Checkboxes
<input type="checkbox" /> defines a checkbox. Checkboxes let a user select ONE or MORE
options of a limited number of choices.
<form>
<input type="checkbox" name="vehicle" value="Bike" /> I have a bike<br />
<input type="checkbox" name="vehicle" value="Car" /> I have a car
</form>
How the HTML code above looks in a browser:
I have a bike
I have a car
Submit Button
<input type="submit" /> defines a submit button.
A submit button is used to send form data to a server. The data is sent to the page specified in the
form's action attribute. The file defined in the action attribute usually does something with the
received input:
Submit
Username:
If you type some characters in the text field above, and click the "Submit" button, the browser
will send your input to a page called "html_form_action.asp". The page will show you the
received input.
Checkboxes
How to create checkboxes. A user can select or unselect a checkbox.
Create a button
How to create a button.
Form Examples
Fieldset around form-data
How to create a border around elements in a form.
<html>
<body>
<form action="">
<fieldset>
<legend>Personal information:</legend>
</fieldset>
</form>
</body>
</html>
<body>
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called
"html_form_action.asp".</p>
</body>
</html>
<html>
<body>
<p>If you click the "Submit" button, the form-data will be sent to a page called
"html_form_action.asp".</p>
</body>
</html>
<html>
<body>
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called
"html_form_action.asp".</p>
</body>
</html>
Send e-mail from a form
How to send e-mail from a form.
<html>
<body>
Name:<br />
E-mail:<br />
Comment:<br />
</form>
</body>
</html>
HTML <select> Tag
Example
Create a select list with four options:
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
Try it yourself »
The <option> tags inside the select element define the available options in the list.
Browser Support
Standard Attributes
The <select> tag supports the following standard attributes:
rtl
dir Specifies the text direction for the content in an element STF
ltr
lang language_code Specifies a language code for the content in an element STF
xml:lang language_code Specifies a language code for the content in an element, STF
in XHTML documents
Event Attributes
The <select> tag supports the following event attributes:
onkeypress script Script to be run when a key is pressed and released STF
<select>
<option>Volvo</option>
<option>Saab</option>
<option>Mercedes</option>
<option>Audi</option>
</select>
Try it yourself »
Definition and Usage
The <textarea> tag defines a multi-line text input control.
A text area can hold an unlimited number of characters, and the text renders in a fixed-width font
(usually Courier).
The size of a textarea can be specified by the cols and rows attributes, or even better; through
CSS' height and width properties.
Browser Support
Required Attributes
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict,
T=Transitional, and F=Frameset.
Optional Attributes
Attribute Value Description DTD
Standard Attributes
The <textarea> tag supports the following standard attributes:
rtl
dir Specifies the text direction for the content in an element STF
ltr
lang language_code Specifies a language code for the content in an element STF
Event Attributes
The <textarea> tag supports the following event attributes:
Attribute Value Description DTD
onkeypress script Script to be run when a key is pressed and released STF
Your browser does not support inline frames or is currently configured not to display inline frames.
HTML Frames
« Previous Next Chapter »
HTML <label> Tag
Example
An simple HTML form with two input fields and related labels :
<form>
<label for="male">Male</label>
<input type="radio" name="sex" id="male" />
<br />
<label for="female">Female</label>
<input type="radio" name="sex" id="female" />
</form>
Try it yourself »
The label element does not render as anything special for the user. However, it provides a
usability improvement for mouse users, because if the user clicks on the text within the label
element, it toggles the control.
The for attribute of the <label> tag should be equal to the id attribute of the related element to
bind them together.
Browser Support
The <label> tag is supported in all major browsers.
Optional Attributes
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict,
T=Transitional, and F=Frameset.
Standard Attributes
The <label> tag supports the following standard attributes:
rtl
dir Specifies the text direction for the content in an element STF
ltr
lang language_code Specifies a language code for the content in an element STF
style style_definition Specifies an inline style for an element STF
Event Attributes
The <label> tag supports the following event attributes:
onkeypress script Script to be run when a key is pressed and released STF
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
Try it yourself »
If you have a long list of options, groups of related options are easier to handle for the user.
Browser Support
Required Attributes
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict,
T=Transitional, and F=Frameset.
Optional Attributes
Attribute Value Description DTD
Standard Attributes
The <optgroup> tag supports the following standard attributes:
rtl
dir Specifies the text direction for the content in an element STF
ltr
lang language_code Specifies a language code for the content in an element STF
Event Attributes
The <optgroup> tag supports the following event attributes:
onkeypress script Script to be run when a key is pressed and released STF
Try-It-Yourself Examples
Vertical frameset
How to make a vertical frameset with three different documents.
Horizontal frameset
How to make a horizontal frameset with three different documents.
HTML Frames
With frames, you can display more than one HTML document in the same browser window.
Each HTML document is called a frame, and each frame is independent of the others.
The frameset element states HOW MANY columns or rows there will be in the frameset, and
HOW MUCH percentage/pixels of space will occupy each of them.
The first column is set to 25% of the width of the browser window. The second column is set to
75% of the width of the browser window. The document "frame_a.htm" is put into the first
column, and the document "frame_b.htm" is put into the second column:
<frameset cols="25%,75%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
</frameset>
Note: The frameset column size can also be set in pixels (cols="200,500"), and one of the
columns can be set to use the remaining space, with an asterisk (cols="25%,*").
Note: Add the <noframes> tag for browsers that do not support frames.
Important: You cannot use the <body></body> tags together with the <frameset></frameset>
tags! However, if you add a <noframes> tag containing some text for browsers that do not
support frames, you will have to enclose the text in <body></body> tags! See how it is done in
the first example below.
More Examples
<html>
<frameset rows="25%,50%,25%">
</html>
2.example
<html>
<frameset cols="25%,50%,25%">
<noframes>
</noframes>
</frameset>
</html>
Nested framesets
How to create a frameset with three documents, and how to mix them in rows and columns.
<html>
<frameset rows="50%,50%">
<frameset cols="25%,75%">
</frameset>
</frameset>
</html>
<html>
<frameset rows="50%,50%">
</html>
Navigation frame
How to make a navigation frame. The navigation frame contains a list of links with the second
frame as the target. The file called "tryhtml_contents.htm" contains three links. The source code
of the links:
<a href ="frame_a.htm" target ="showframe">Frame a</a><br>
<a href ="frame_b.htm" target ="showframe">Frame b</a><br>
<a href ="frame_c.htm" target ="showframe">Frame c</a>
The second frame will show the linked document.
<html>
<frameset cols="120,*">
</frameset>
</html>
<html>
<frameset cols="20%,80%">
</frameset>
</html>
<html>
<frameset cols="180,*">
</frameset>
</html>
HTML Frame Tags
Tag Description
<noframes> Defines a noframe section for browsers that do not handle frames
HTML Iframes
« Previous Next Chapter »
<iframe src="URL"></iframe>
The attribute values are specified in pixels by default, but they can also be in percent (like
"80%").
Example
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>
Try it yourself »
Example
<iframe src="demo_iframe.htm" frameborder="0"></iframe>
Try it yourself »
The target attribute of a link must refer to the name attribute of the iframe:
Example
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://www.w3schools.com" target="iframe_a">W3Schools.com</a></p>
Try it yourself »
HTML iframe Tag
Tag Description
HTML Colors
« Previous Next Chapter »
Color Values
HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red,
Green, and Blue color values (RGB).
The lowest value that can be given to one of the light sources is 0 (in HEX: 00). The highest
value is 255 (in HEX: FF).
HEX values are specified as 3 pairs of two-digit numbers, starting with a # sign.
Color Values
Color Color HEX Color RGB
#000000 rgb(0,0,0)
#FF0000 rgb(255,0,0)
#00FF00 rgb(0,255,0)
#0000FF rgb(0,0,255)
#FFFF00 rgb(255,255,0)
#00FFFF rgb(0,255,255)
#FF00FF rgb(255,0,255)
#C0C0C0 rgb(192,192,192)
#FFFFFF rgb(255,255,255)
Try it yourself »
If you look at the color table below, you will see the result of varying the red light from 0 to 255,
while keeping the green and blue light at zero.
To see the full list of color mixes when RED varies from 0 to 255, click on one of the HEX or
RGB values below.
#000000 rgb(0,0,0)
#080000 rgb(8,0,0)
#100000 rgb(16,0,0)
#180000 rgb(24,0,0)
#200000 rgb(32,0,0)
#280000 rgb(40,0,0)
#300000 rgb(48,0,0)
#380000 rgb(56,0,0)
#400000 rgb(64,0,0)
#480000 rgb(72,0,0)
#500000 rgb(80,0,0)
#580000 rgb(88,0,0)
#600000 rgb(96,0,0)
#680000 rgb(104,0,0)
#700000 rgb(112,0,0)
#780000 rgb(120,0,0)
#800000 rgb(128,0,0)
#880000 rgb(136,0,0)
#900000 rgb(144,0,0)
#980000 rgb(152,0,0)
#A00000 rgb(160,0,0)
#A80000 rgb(168,0,0)
#B00000 rgb(176,0,0)
#B80000 rgb(184,0,0)
#C00000 rgb(192,0,0)
#C80000 rgb(200,0,0)
#D00000 rgb(208,0,0)
#D80000 rgb(216,0,0)
#E00000 rgb(224,0,0)
#E80000 rgb(232,0,0)
#F00000 rgb(240,0,0)
#F80000 rgb(248,0,0)
#FF0000 rgb(255,0,0)
Shades of Gray
Gray colors are created by using an equal amount of power to all of the light sources.
To make it easier for you to select the correct shade, we have created a table of gray shades for
you:
#000000 rgb(0,0,0)
#080808 rgb(8,8,8)
#101010 rgb(16,16,16)
#181818 rgb(24,24,24)
#202020 rgb(32,32,32)
#282828 rgb(40,40,40)
#303030 rgb(48,48,48)
#383838 rgb(56,56,56)
#404040 rgb(64,64,64)
#484848 rgb(72,72,72)
#505050 rgb(80,80,80)
#585858 rgb(88,88,88)
#606060 rgb(96,96,96)
#686868 rgb(104,104,104)
#707070 rgb(112,112,112)
#787878 rgb(120,120,120)
#808080 rgb(128,128,128)
#888888 rgb(136,136,136)
#909090 rgb(144,144,144)
#989898 rgb(152,152,152)
#A0A0A0 rgb(160,160,160)
#A8A8A8 rgb(168,168,168)
#B0B0B0 rgb(176,176,176)
#B8B8B8 rgb(184,184,184)
#C0C0C0 rgb(192,192,192)
#C8C8C8 rgb(200,200,200)
#D0D0D0 rgb(208,208,208)
#D8D8D8 rgb(216,216,216)
#E0E0E0 rgb(224,224,224)
#E8E8E8 rgb(232,232,232)
#F0F0F0 rgb(240,240,240)
#F8F8F8 rgb(248,248,248)
#FFFFFF rgb(255,255,255)
The 216 cross-browser color palette was created to ensure that all computers would display the
colors correctly when running a 256 color palette.
This is not important today, since most computers can display millions of different colors.
Anyway, here is the list:
<body>
Visible text goes here...
</body>
</html>
Heading Elements
<h1>Largest Heading</h1>
<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6>Smallest Heading</h6>
Text Elements
<p>This is a paragraph</p>
<br /> (line break)
<hr /> (horizontal rule)
<pre>This text is preformatted</pre>
Logical Styles
<em>This text is emphasized</em>
<strong>This text is strong</strong>
<code>This is some computer code</code>
Physical Styles
<b>This text is bold</b>
<i>This text is italic</i>
Links
Ordinary link: <a href="http://www.example.com/">Link-text goes here</a>
Image-link: <a href="http://www.example.com/"><img src="URL" alt="Alternate Text" /></a>
Mailto link: <a href="mailto:[email protected]">Send e-mail</a>
A named anchor:
<a name="tips">Tips Section</a>
<a href="#tips">Jump to the Tips Section</a>
Unordered list
<ul>
<li>Item</li>
<li>Item</li>
</ul>
Ordered list
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
Definition list
<dl>
<dt>First term</dt>
<dd>Definition</dd>
<dt>Next term</dt>
<dd>Definition</dd>
</dl>
Tables
<table border="1">
<tr>
<th>Tableheader</th>
<th>Tableheader</th>
</tr>
<tr>
<td>sometext</td>
<td>sometext</td>
</tr>
</table>
Frames
<frameset cols="25%,75%">
<frame src="page1.htm" />
<frame src="page2.htm" />
</frameset>
Forms
<form action="http://www.example.com/test.asp" method="post/get">
<select>
<option>Apples</option>
<option selected="selected">Bananas</option>
<option>Cherries</option>
</select>
</form>
Entities
< is the same as <
> is the same as >
© is the same as ©
Other Elements
<!-- This is a comment -->
<blockquote>
Text quoted from a source.
</blockquote>
<address>
Written by W3Schools.com<br />
<a href="mailto:[email protected]">Email us</a><br />
Address: Box 564, Disneyland<br />
Phone: +12 34 56 78
</address>
HTML Meta
« Previous Next Chapter »
Try-It-Yourself Examples
Document description
Use the meta element to describe the document.
Document keywords
Use the meta element to define the keywords of a document.
Redirect a user
How to redirect a user to a new web address.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed
on the page, but will be machine parsable.
Meta elements are typically used to specify page description, keywords, author of the document,
last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload page), search engines
(keywords), or other web services.
The intention of the name and content attributes is to describe the content of a page.
Note: A lot of webmasters have used <meta> tags for spamming, like repeating keywords (or
using wrong keywords) for higher ranking. Therefore, most search engines have stopped using
<meta> tags to index/rank pages.
HTML Scripts
« Previous Next Chapter »
Insert a script
How to insert a script into an HTML document.
The script element either contains scripting statements or it points to an external script file
through the src attribute.
The required type attribute specifies the MIME type of the script.
Common uses for JavaScript are image manipulation, form validation, and dynamic changes of
content.
Example
<script type="text/javascript">
document.write("Hello World!")
</script>
Try it yourself »
The content inside the noscript element will only be displayed if scripts are not supported, or are
disabled in the user’s browser:
Example
<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>
Try it yourself »
<noscript> Defines an alternate content for users that do not support client-side scripts
HTML Entities
« Previous Next Chapter »
HTML Entities
Some characters are reserved in HTML.
It is not possible to use the less than (<) or greater than (>) signs in your text, because the
browser will mix them with tags.
To actually display reserved characters, we must use character entities in the HTML source code.
&entity_name;
OR
&#entity_number;
Tip: The advantage of using an entity name, instead of a number, is that the name is easier to
remember. However, the disadvantage is that browsers may not support all entity names (the
support for entity numbers is very good).
Non-breaking Space
A common character entity used in HTML is the non-breaking space ( ).
Browsers will always truncate spaces in HTML pages. If you write 10 spaces in your text, the
browser will remove 9 of them, before displaying the page. To add spaces to your text, you can
use the character entity.
For a complete reference of all character entities, visit our HTML Entities Reference.
A Uniform Resource Locator (URL) is used to address a document (or other data) on the world
wide web.
scheme://host.domain:port/path/filename
Explanation:
scheme - defines the type of Internet service. The most common type is http
host - defines the domain host (the default host for http is www)
domain - defines the Internet domain name, like w3schools.com
:port - defines the port number at the host (the default port number for http is 80)
path - defines a path at the server (If omitted, the document must be stored at the root
directory of the web site)
filename - defines the name of a document/resource
Scheme Short for.... Which pages will the scheme be used for...
http HyperText Transfer Protocol Common web pages starts with http://. Not encrypted
URL encoding converts characters into a format that can be transmitted over the Internet.
URL Encoding
URLs can only be sent over the Internet using the ASCII character-set.
Since URLs often contain characters outside the ASCII set, the URL has to be converted into a
valid ASCII format.
URL encoding replaces non ASCII characters with a "%" followed by two hexadecimal digits.
URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.
Try It Yourself
If you click the "Submit" button below, the browser will URL encode the input before it is sent
to the server. A page at the server will display the received input.
€ %80
£ %A3
© %A9
® %AE
À %C0
Á %C1
 %C2
à %C3
Ä %C4
Å %C5
To make your web site visible to the world, you'll have to store it on a web server.
Hardware Expenses
To run a "real" web site, you will have to buy some powerful server hardware. Don't expect that
a low cost PC will do the job. You will also need a permanent (24 hours a day ) high-speed
connection.
Software Expenses
Remember that server-licenses often are higher than client-licenses. Also note that server-
licenses might have limits on number of users.
Labor Expenses
Don't expect low labor expenses. You have to install your own hardware and software. You also
have to deal with bugs and viruses, and keep your server constantly running in an environment
where "everything could happen".
Most small companies store their web site on a server provided by an ISP. Here are some
advantages:
Connection Speed
Powerful Hardware
ISPs often have powerful web servers that can be shared by several companies. You can also
expect them to have an effective load balancing, and necessary backup servers.
ISPs are specialists on web hosting. Expect their servers to have more than 99% up time, the
latest software patches, and the best virus protection.
Make sure your ISP offers 24-hours support. Don't put yourself in a situation where you cannot
fix critical problems without having to wait until the next working day. Toll-free phone could be
vital if you don't want to pay for long distance calls.
Daily Backup
Make sure your ISP runs a daily backup routine, otherwise you may lose some valuable data.
Traffic Volume
Study the ISP's traffic volume restrictions. Make sure that you don't have to pay a fortune for
unexpected high traffic if your web site becomes popular.
Study the ISP's bandwidth and content restrictions. If you plan to publish pictures or broadcast
video or sound, make sure that you can.
E-mail Capabilities
Make sure your ISP supports the e-mail capabilities you need.
Database Access
If you plan to use data from databases on your web site, make sure your ISP supports the
database access you need.
To learn more about programming events, please visit our JavaScript tutorial and our DHTML
tutorial.
Below is the standard event attributes that can be inserted into HTML / XHTML elements to
define event actions.
Form Events
The attributes below can be used in form elements:
Image Events
The attribute below can be used with the img element:
Keyboard Events
Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param,
script, style, and title.
Mouse Events
Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param,
script, style, and title.
onmouseover script Script to be run when mouse pointer moves over an element
It contains the numbers from 0-9, the uppercase and lowercase English letters from A to Z, and
some special characters.
The character-sets used in modern computers, HTML, and Internet are all based on ASCII.
The following table lists the 128 ASCII characters and their equivalent HTML entity codes.
  space
, , comma
- - hyphen
. . period
/ / slash
0 0 digit 0
1 1 digit 1
2 2 digit 2
3 3 digit 3
4 4 digit 4
5 5 digit 5
6 6 digit 6
7 7 digit 7
8 8 digit 8
9 9 digit 9
: : colon
; ; semicolon
= = equals-to
A A uppercase A
B B uppercase B
C C uppercase C
D D uppercase D
E E uppercase E
F F uppercase F
G G uppercase G
H H uppercase H
I I uppercase I
J J uppercase J
K K uppercase K
L L uppercase L
M M uppercase M
N N uppercase N
O O uppercase O
P P uppercase P
Q Q uppercase Q
R R uppercase R
S S uppercase S
T T uppercase T
U U uppercase U
V V uppercase V
W W uppercase W
X X uppercase X
Y Y uppercase Y
Z Z uppercase Z
\ \ backslash
^ ^ caret
_ _ underscore
a a lowercase a
b b lowercase b
c c lowercase c
d d lowercase d
e e lowercase e
f f lowercase f
g g lowercase g
h h lowercase h
i i lowercase i
j j lowercase j
k k lowercase k
l l lowercase l
m m lowercase m
n n lowercase n
o o lowercase o
p p lowercase p
q q lowercase q
r r lowercase r
s s lowercase s
t t lowercase t
u u lowercase u
v v lowercase v
w w lowercase w
x x lowercase x
y y lowercase y
z z lowercase z
~ ~ tilde
BS  backspace
SI  shift in
Since many countries use characters which are not a part of ASCII, the default character-set for
modern browsers is ISO-8859-1.
If a web page uses a different character-set than ISO-8859-1, it should be specified in the <meta>
tag.
Try it yourself
The different character-sets being used around the world are listed below:
ISO-8859-6 Latin/Arabic part 6 The languages that are using the Arabic alphabet
The Unicode Standard covers all the characters, punctuations, and symbols in the world.
Unicode enables processing, storage and interchange of text data no matter what the platform, no
matter what the program, no matter what the language.
The Unicode Standard has become a success and is implemented in XML, Java, ECMAScript
(JavaScript), LDAP, CORBA 3.0, WML, etc. The Unicode standard is also supported in many
operating systems and all modern browsers.
The Unicode Consortium cooperates with the leading standards development organizations, like
ISO, W3C, and ECMA.
Unicode can be implemented by different character-sets. The most commonly used encodings
are UTF-8 and UTF-16:
Character-set Description
A character in UTF8 can be from 1 to 4 bytes long. UTF-8 can represent any
UTF-8 character in the Unicode standard. UTF-8 is backwards compatible with ASCII. UTF-
8 is the preferred encoding for e-mail and web pages
Tip: The first 256 characters of Unicode character-sets correspond to the 256 characters of ISO-
8859-1.
Tip: All HTML 4 processors already support UTF-8, and all XHTML and XML processors
support UTF-8 and UTF-16!
According to the W3C recommendation you should declare the primary language for each Web
page with the lang attribute inside the <html> tag, like this:
<html lang="en">
...
</html>
In XHTML, the language is declared inside the <html> tag as follows:
Abkhazian ab
Afar aa
Afrikaans af
Albanian sq
Amharic am
Arabic ar
Armenian hy
Assamese as
Aymara ay
Azerbaijani az
Bashkir ba
Basque eu
Bengali (Bangla) bn
Bhutani dz
Bihari bh
Bislama bi
Breton br
Bulgarian bg
Burmese my
Byelorussian (Belarusian) be
Cambodian km
Catalan ca
Cherokee
Chewa
Chinese (Simplified) zh
Chinese (Traditional) zh
Corsican co
Croatian hr
Czech cs
Danish da
Divehi
Dutch nl
Edo
English en
Esperanto eo
Estonian et
Faeroese fo
Farsi fa
Fiji fj
Finnish fi
Flemish
French fr
Frisian fy
Fulfulde
Galician gl
Gaelic (Scottish) gd
Gaelic (Manx) gv
Georgian ka
German de
Greek el
Greenlandic kl
Guarani gn
Gujarati gu
Hausa ha
Hawaiian
Hebrew he, iw
Hindi hi
Hungarian hu
Ibibio
Icelandic is
Igbo
Indonesian id, in
Interlingua ia
Interlingue ie
Inuktitut iu
Inupiak ik
Irish ga
Italian it
Japanese ja
Javanese jv
Kannada kn
Kanuri
Kashmiri ks
Kazakh kk
Kinyarwanda (Ruanda) rw
Kirghiz ky
Kirundi (Rundi) rn
Konkani
Korean ko
Kurdish ku
Laothian lo
Latin la
Latvian (Lettish) lv
Limburgish ( Limburger) li
Lingala ln
Lithuanian lt
Macedonian mk
Malagasy mg
Malay ms
Malayalam ml
Maltese mt
Maori mi
Marathi mr
Moldavian mo
Mongolian mn
Nauru na
Nepali ne
Norwegian no
Occitan oc
Oriya or
Papiamentu
Pashto (Pushto) ps
Polish pl
Portuguese pt
Punjabi pa
Quechua qu
Rhaeto-Romance rm
Romanian ro
Russian ru
Sami (Lappish)
Samoan sm
Sangro sg
Sanskrit sa
Serbian sr
Serbo-Croatian sh
Sesotho st
Setswana tn
Shona sn
Sindhi sd
Sinhalese si
Siswati ss
Slovak sk
Slovenian sl
Somali so
Spanish es
Sundanese su
Swahili (Kiswahili) sw
Swedish sv
Syriac
Tagalog tl
Tajik tg
Tamazight
Tamil ta
Tatar tt
Telugu te
Thai th
Tibetan bo
Tigrinya ti
Tonga to
Tsonga ts
Turkish tr
Turkmen tk
Twi tw
Uighur ug
Ukrainian uk
Urdu ur
Uzbek uz
Venda
Vietnamese vi
Volapük vo
Welsh cy
Wolof wo
Xhosa xh
Yi
Yiddish yi, ji
Yoruba yo
Zulu zu
ISO-8859-1
ISO-8859-1 is the default character set in most browsers.
The first 128 characters of ISO-8859-1 is the original ASCII character-set (the numbers from 0-
9, the uppercase and lowercase English alphabet, and some special characters).
The higher part of ISO-8859-1 (codes from 160-255) contains the characters used in Western
European countries and some commonly used special characters.
Entities are used to implement reserved characters or to express characters that cannot easily be
entered with the keyboard.
HTML and XHTML processors must support the five special characters listed in the table below:
Examples
1.
<html>
<body>
<script type="text/javascript">
document.write(document.URL);
</script>
</body>
</html>
<html>
<body>
<map name="planetmap">
</map>
<p>Number of areas/links:
<script type="text/javascript">
document.write(document.links.length);
</script></p>
</body>
</html>