HTML Introduction: Don Bosco Secondary and Preparatory School
HTML Introduction: Don Bosco Secondary and Preparatory School
HTML Introduction: Don Bosco Secondary and Preparatory School
HTML Introduction
Example
<html>
<body>
</body>
</html>
What is HTML?
HTML is a language for describing web pages.
HTML Tags
HTML markup tags are usually called HTML tags
The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and
display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret
the content of the page:
<html>
<body>
</body>
</html>
Example Explained
The text between <html> and </html> describes the web page
The text between <body> and </body> is the visible page content
The text between <h1> and </h1> is displayed as a heading
The text between <p> and </p> is displayed as a paragraph
Editing HTML
HTML can be written and edited using many different editors like Dreamweaver and Visual Studio.
However, in this tutorial we use a plain text editor (like Notepad) to edit HTML. We believe using a
plain text editor is the best way to learn HTML.
If you want to create a test page on your own computer, just copy the 3 files below to your desktop.
(Right click on each link, and select "save target as" or "save link as")
mainpage.htm
page1.htm
page2.htm
After you have copied the files, you can double-click on the file called "mainpage.htm" and see your
first web site in action.
Note: If your test web contains HTML markup tags you have not learned, don't panic. You will learn
all about it in the next chapters.
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Try it yourself »
HTML Paragraphs
HTML paragraphs are defined with the <p> tag.
Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Try it yourself »
HTML Links
HTML links are defined with the <a> tag.
Example
<a href="http://www.w3schools.com">This is a link</a>
Try it yourself »
HTML Images
HTML images are defined with the <img> tag.
Example
<img src="w3schools.jpg" width="104" height="142" />
HTML Elements
An HTML element is everything from the start tag to the end tag:
<br />
* The start tag is often called the opening tag. The end tag is often called the closing tag.
Tip: You will learn about attributes in the next chapter of this tutorial.
<body>
<p>This is my first paragraph.</p>
</body>
</html>
<body>
<p>This is my first paragraph.</p>
</body>
<html>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
<p>This is a paragraph
<p>This is a paragraph
The example above works in most browsers, because the closing tag is considered optional.
Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget
the end tag .
<br> is an empty element without a closing tag (the <br> tag defines a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the
proper way of closing empty elements in XHTML (and XML).
W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends
lowercase in HTML 4, and demands lowercase tags in XHTML.
HTML Attributes
HTML elements can have attributes
Attributes provide additional information about an element
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value"
Attribute Example
HTML links are defined with the <a> tag. The link address is specified in the href attribute:
Example
<a href="http://www.w3schools.com">This is a link</a>
Try it yourself »
Double style quotes are the most common, but single style quotes are also allowed.
Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use
single quotes: name='John "ShotGun" Nelson'
However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values
in their HTML 4 recommendation.
Below is a list of some attributes that are standard for most HTML elements:
HTML Headings
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Try it yourself »
Note: Browsers automatically add some empty space (a margin) before and after each heading.
Search engines use your headings to index the structure and content of your web pages.
Since users may skim your pages by its headings, it is important to use headings to show the document
structure.
H1 headings should be used as main headings, followed by H2 headings, then the less important H3
headings, and so on.
HTML Lines
The <hr /> tag creates a horizontal line in an HTML page.
Example
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
Try it yourself »
HTML Comments
Comments can be inserted into the HTML code to make it more readable and understandable.
Comments are ignored by the browser and are not displayed.
Example
<!-- This is a comment -->
Try it yourself »
Note: There is an exclamation point after the opening bracket, but not before the closing bracket.
To find out, right-click in the page and select "View Source" (IE) or "View Page Source" (Firefox), or
similar for other browsers. This will open a window containing the HTML code of the page.
Headings
How to display headings in an HTML document.
Hidden comments
How to insert comments in the HTML source code.
Horizontal lines
How to insert a horizontal line.
You will learn more about HTML tags and attributes in the next chapters of this tutorial.
Tag Description
<html> Defines an HTML document
<body> Defines the document's body
<h1> to <h6> Defines HTML headings
<hr /> Defines a horizontal line
<!--> Defines a comment
HTML Paragraphs
Paragraphs are defined with the <p> tag.
Example
<p>This is a paragraph</p>
<p>This is another paragraph</p>
Try it yourself »
Note: Browsers automatically add an empty line before and after a paragraph.
Most browsers will display HTML correctly even if you forget the end tag:
Example
<p>This is a paragraph
<p>This is another paragraph
Try it yourself »
The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce
unexpected results or errors.
Note: Future version of HTML will not allow you to skip end tags.
Example
<p>This is<br />a para<br />graph with line breaks</p>
Try it yourself »
The <br /> element is an empty HTML element. It has no end tag.
Even if <br> works in all browsers, writing <br /> instead works better in XHTML and XML
applications.
You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will
create different results.
With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines
count as one line, and any number of spaces count as one space.
Try it yourself
Line breaks
The use of line breaks in an HTML document.
Poem problems
Some problems with HTML formatting.
More Examples
More paragraphs
The default behaviors of paragraphs.
Tag Description
<p> Defines a paragraph
<br /> Inserts a single line break
These HTML tags are called formatting tags (look at the bottom of this page for a complete reference).
<strong> or <em> means that you want the text to be rendered in a way that the user understands
as "important". Today, all major browsers render strong as bold and em as italics. However, if a
browser one day wants to make a text highlighted with the strong feature, it might be cursive for
example and not bold!
Preformatted text
How to control the line breaks and spaces with the pre tag.
Address
How to define contact information for the author/owner of an HTML document.
Text direction
How to change the text direction.
Quotations
How to handle long and short quotations.
The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations.
In HTML 4, style sheets (CSS) should be used to define the layout and display properties for many
HTML elements.
The example below shows how the HTML could look by using the <font> tag:
Example
<p>
<font size="5" face="arial" color="red">
This paragraph is in Arial, size 5, and in red text color.
</font>
</p>
<p>
<font size="3" face="verdana" color="blue">
This paragraph is in Verdana, size 3, and in blue text color.
</font>
</p>
Try it yourself »
Try it yourself
The preferred way to add CSS to HTML, is to put CSS syntax in separate CSS files.
However, in this HTML tutorial we will introduce you to CSS using the style attribute. This is done to
simplify the examples. It also makes it easier for you to edit the code and try it yourself.
Example
<html>
<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>
</html>
Try it yourself »
Example
<html>
<body>
<h1 style="font-family:verdana;">A heading</h1>
<p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
</body>
</html>
Try it yourself »
The font-family, color, and font-size properties make the old <font> tag obsolete.
Example
<html>
<body>
</html>
Try it yourself »
Tags Description
<center> Deprecated. Defines centered content
<font> and <basefont> Deprecated. Defines HTML fonts
<s> and <strike> Deprecated. Defines strikethrough text
<u> Deprecated. Defines underlined text
Attributes Description
align Deprecated. Defines the alignment of text
bgcolor Deprecated. Defines the background color
color Deprecated. Defines the text color
HTML Links
« Previous
Next Chapter »
Links are found in nearly all Web pages. Links allow users to click their way from page to page.
When you move the cursor over a link in a Web page, the arrow will turn into a little hand.
Example
Tip: The "Link text" doesn't have to be text. It can be an image or any other HTML element.
The example below will open the linked document in a new browser window or a new tab:
Example
<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
Try it yourself »
Note: The upcoming HTML5 standard suggests using the id attribute instead of the name attribute for
specifying the name of an anchor. Using the id attribute actually works also for HTML4 in all modern
browsers.
Bookmarks are not displayed in any special way. They are invisible to the reader.
Example
A named anchor inside an HTML document:
Create a link to the "Useful Tips Section" inside the same document:
Or, create a link to the "Useful Tips Section" from another page:
<a href="http://www.w3schools.com/html_links.htm#tips">
Visit the Useful Tips Section</a>
Tip: Named anchors are often used to create "table of contents" at the beginning of a large document.
Each chapter within the document is given a named anchor, and links to each of these anchors are put
at the top of the document.
More Examples
An image as a link
How to use an image as a link.
Tag Description
<a> Defines an anchor
The <img> tag is empty, which means that it contains attributes only, and has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The value of
the src attribute is the URL of the image you want to display.
The URL points to the location where the image is stored. An image named "boat.gif", located in the
"images" directory on "www.w3schools.com" has the URL:
http://www.w3schools.com/images/boat.gif.
The browser displays the image where the <img> tag occurs in the document. If you put an image tag
between two paragraphs, the browser shows the first paragraph, then the image, and then the second
paragraph.
The alt attribute provides alternative information for an image if a user for some reason cannot view it
(because of slow connection, an error in the src attribute, or if the user uses a screen reader).
The height and width attributes are used to specify the height and width of an image.
Tip: It is a good practice to specify both the height and width attributes for an image. If these attributes
are set, the space required for the image is reserved when the page is loaded. However, without these
attributes, the browser does not know the size of the image. The effect will be that the page layout will
change during loading (while the images load).
Note: When a web page is loaded, it is the browser, at that moment, that actually gets the image from a
web server and inserts it into the page. Therefore, make sure that the images actually stay in the same
spot in relation to the web page, otherwise your visitors will get a broken link icon. The broken link
icon is shown if the browser cannot find the image.
More Examples
Aligning images
How to align an image within the text.
HTML Tables
« Previous
Next Chapter »
HTML Tables
Apples 44%
Bananas 23%
Oranges 13%
Other 10%
Table borders
How to specify different table borders.
HTML Tables
Tables are defined with the <table> tag.
A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td>
tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links,
images, lists, forms, other tables, etc.
Table Example
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
<table border="1">
<tr>
<td>Row 1, cell 1</td>
<td>Row 1, cell 2</td>
</tr>
</table>
All major browsers display the text in the <th> element as bold and centered.
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
More Examples
Tables without borders
How to create tables without borders.
Table headers
How to create table headers.
Cell padding
How to use cellpadding to create more white space between the cell content and its borders.
Cell spacing
How to use cellspacing to increase the distance between the cells.
HTML Lists
« Previous
Next Chapter »
The most common HTML lists are ordered and unordered lists:
HTML Lists
Try-It-Yourself Examples
Unordered list
How to create an unordered list in an HTML document.
Ordered list
How to create an ordered list in an HTML document.
The list items are marked with bullets (typically small black circles).
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
Coffee
Milk
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
1. Coffee
2. Milk
The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item
in the list):
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Coffee
- black hot drink
Milk
- white cold drink
More Examples
Different types of ordered lists
Demonstrates different types of ordered lists.
Nested list
Demonstrates how you can nest lists.
Nested list 2
Demonstrates a more complicated nested list.
Definition list
Demonstrates a definition list.
HTML Forms
HTML forms are used to pass data to a server.
A form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more.
A form can also contain select lists, textarea, fieldset, 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 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>
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:
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.
Textarea
How to create a multi-line text input control. In a text-area the user can write an unlimited number of
characters.
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 Frames
« Previous
Next Chapter »
With frames, several Web pages can be displayed in the same browser window.
Try-It-Yourself Examples
[Compiled by: A.T] Page 37
Don Bosco Secondary and Preparatory School
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
How to use the <noframes> tag
How to use the <noframes> tag (for browsers that do not support frames).
Nested framesets
How to create a frameset with three documents, and how to mix them in rows and columns.
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>
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 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.
#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:
#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:
« Previous
Next Chapter
Tip: The 16 basic color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive,
purple, red, silver, teal, white, and yellow.
Click on a color name (or a hex value) to view the color as the background-color along with different
text colors:
Color
NameHEXColorShadesMixAliceBlue #F0F8FF ShadesMixAntiqueWhite #FAEBD7 ShadesMixAqu
a #00FFFF ShadesMixAquamarine #7FFFD4 ShadesMixAzure #F0FFFF ShadesMixBeige #F5F5DC
ShadesMixBisque #FFE4C4 ShadesMixBlack #000000 ShadesMixBlanchedAlmond #FFEBCD Shade
sMixBlue #0000FF ShadesMixBlueViolet #8A2BE2 ShadesMixBrown #A52A2A ShadesMixBurlyW
ood #DEB887 ShadesMixCadetBlue #5F9EA0 ShadesMixChartreuse #7FFF00 ShadesMixChocolate #
D2691E ShadesMixCoral #FF7F50 ShadesMixCornflowerBlue #6495ED ShadesMixCornsilk #FFF8D
C ShadesMixCrimson #DC143C ShadesMixCyan #00FFFF ShadesMixDarkBlue #00008B ShadesMix
DarkCyan #008B8B ShadesMixDarkGoldenRod #B8860B ShadesMixDarkGray #A9A9A9 ShadesMix
DarkGrey #A9A9A9 ShadesMixDarkGreen #006400 ShadesMixDarkKhaki #BDB76B ShadesMixDar
kMagenta #8B008B ShadesMixDarkOliveGreen #556B2F ShadesMixDarkorange #FF8C00 ShadesMi
xDarkOrchid #9932CC ShadesMixDarkRed #8B0000 ShadesMixDarkSalmon #E9967A ShadesMixDa
rkSeaGreen #8FBC8F ShadesMixDarkSlateBlue #483D8B ShadesMixDarkSlateGray #2F4F4F Shades
MixDarkSlateGrey #2F4F4F ShadesMixDarkTurquoise #00CED1 ShadesMixDarkViolet #9400D3 Sh
adesMixDeepPink #FF1493 ShadesMixDeepSkyBlue #00BFFF ShadesMixDimGray #696969 Shades
MixDimGrey #696969 ShadesMixDodgerBlue #1E90FF ShadesMixFireBrick #B22222 ShadesMixFlo
ralWhite #FFFAF0 ShadesMixForestGreen #228B22 ShadesMixFuchsia #FF00FF ShadesMixGainsbo
ro #DCDCDC ShadesMixGhostWhite #F8F8FF ShadesMixGold #FFD700 ShadesMixGoldenRod #D
AA520 ShadesMixGray #808080 ShadesMixGrey #808080 ShadesMixGreen #008000 ShadesMixGre
enYellow #ADFF2F ShadesMixHoneyDew #F0FFF0 ShadesMixHotPink #FF69B4 ShadesMixIndian
Red #CD5C5C ShadesMixIndigo
#4B0082 ShadesMixIvory #FFFFF0 ShadesMixKhaki #F0E68C ShadesMixLavender #E6E6FA Shade
sMixLavenderBlush #FFF0F5 ShadesMixLawnGreen #7CFC00 ShadesMixLemonChiffon #FFFACD
ShadesMixLightBlue #ADD8E6 ShadesMixLightCoral #F08080 ShadesMixLightCyan #E0FFFF Shad
esMixLightGoldenRodYellow #FAFAD2 ShadesMixLightGray #D3D3D3 ShadesMixLightGrey #D3
D3D3 ShadesMixLightGreen #90EE90 ShadesMixLightPink #FFB6C1 ShadesMixLightSalmon #FFA
07A ShadesMixLightSeaGreen #20B2AA ShadesMixLightSkyBlue #87CEFA ShadesMixLightSlateGr
ay #778899 ShadesMixLightSlateGrey #778899 ShadesMixLightSteelBlue #B0C4DE ShadesMixLight
Yellow #FFFFE0 ShadesMixLime #00FF00 ShadesMixLimeGreen #32CD32 ShadesMixLinen #FAF0
E6 ShadesMixMagenta #FF00FF ShadesMixMaroon #800000 ShadesMixMediumAquaMarine #66CD
AA ShadesMixMediumBlue #0000CD ShadesMixMediumOrchid #BA55D3 ShadesMixMediumPurpl
e #9370D8 ShadesMixMediumSeaGreen #3CB371 ShadesMixMediumSlateBlue #7B68EE ShadesMix
MediumSpringGreen #00FA9A ShadesMixMediumTurquoise #48D1CC ShadesMixMediumVioletRed
#C71585 ShadesMixMidnightBlue #191970 ShadesMixMintCream #F5FFFA ShadesMixMistyRose #
FFE4E1 ShadesMixMoccasin #FFE4B5 ShadesMixNavajoWhite #FFDEAD ShadesMix
Navy
#000080
Shades
Mix
OldLace
#FDF5E6
Shades
Mix
Olive
#808000
Shades
Mix
OliveDrab
#6B8E23§
µShades§
µMix§
µOrange§
µ#FFA500§
µShades§
µMix§
µOrangeRed§
µ#FF4500§
µShades§
µMix§
µOrchid§
µ#DA70D6§
µShades§
µMix§
µPaleGoldenRod§
µ#EEE8AA§
µShades§
µMix§
µPaleGreen§
µ#98FB98§
µShades§
µMix§
µPaleTurquoise§
µ#AFEEEE§
µShades§
µMix§
µPaleVioletRed§
µ#D87093§
µShades§
µMix§
µPapayaWhip§
µ#FFEFD5§
µShades§
µMix§
µPeachPuff§
µ#FFDAB9§
µShades§
µMix§
µPeru§
µ#CD853F§
µShades§
µMix§
µPink§
µ#FFC0CB§
µShades§
µMix§
µPlum§
µ#DDA0DD§
µShades§
µMix§
µPowderBlue§
µ#B0E0E6§
µShades§
µMix§
µPurple§
µ#800080§
µShades§
µMix§
µRed§
µ#FF0000§
µShades§
µMix§
µRosyBrown§
µ#BC8F8F§
µShades§
µMix§
µRoyalBlue§
µ#4169E1§
µShades§
µMix§
µSaddleBrown§
µ#8B4513§
µShades§
µMix§
µSalmon§
µ#FA8072§
µShades§
µMix§
µSandyBrown§
µ#F4A460§
µShades§
µMix§
µSeaGreen§
µ#2E8B57§
µShades§
µMix§
µSeaShell§
µ#FFF5EE§
µShades§
µMix§
µSienna§
µ#A0522D§
µShades§
µMix§
µSilver§
µ#C0C0C0§
µShades§
µMix§
µSkyBlue§
µ#87CEEB§
µShades§
µMix§
µSlateBlue§
µ#6A5ACD§
µShades§
µMix§
µSlateGray§
µ#708090§
µShades§
µMix§
µSlateGrey§
µ#708090§
µShades§
µMix§
µSnow§
µ#FFFAFA§
µShades§
µMix§
µSpringGreen§
µ#00FF7F§
µShades§
µMix§
µSteelBlue§
µ#4682B4§
µShades§
µMix§
µTan§
µ#D2B48C§
µShades§
µMix§
µTeal§
µ#008080§
µShades§
µMix§
µThistle§
µ#D8BFD8§
µShades§
µMix§
µTomato§
µ#FF6347§
µShades§
µMix§
µTurquoise§
µ#40E0D0§
µShades§
µMix§
µViolet§
µ#EE82EE§
µShades§
µMix§
µWheat§
µ#F5DEB3§
µShades§
µMix§
µWhite§
µ#FFFFFF§
µShades§
µMix§
µWhiteSmoke§
µ#F5F5F5§
µShades§
µMix§
µYellow§
µ#FFFF00§
µShades§
µMix§
µYellowGreen§
µ#9ACD32§
µShades§
µMix§
µBlack§
µ#000000§
µShades§
µMix§
µNavy§
µ#000080§
µShades§
µMix§
µDarkBlue§
µ#00008B§
µShades§
µMix§
µMediumBlue§
µ#0000CD§
µShades§
µMix§
µBlue§
µ#0000FF§
µShades§
µMix§
µDarkGreen§
µ#006400§
µShades§
µMix§
µGreen§
µ#008000§
µShades§
µMix§
µTeal§
µ#008080§
µShades§
µMix§
µDarkCyan§
µ#008B8B§
µShades§
µMix§
µDeepSkyBlue§
µ#00BFFF§
µShades§
µMix§
µDarkTurquoise§
µ#00CED1§
µShades§
µMix§
µMediumSpringGreen§
µ#00FA9A§
µShades§
µMix§
µLime§
µ#00FF00§
µShades§
µMix§
µSpringGreen§
µ#00FF7F§
µShades§
µMix§
µAqua§
µ#00FFFF§
µShades§
µMix§
µCyan§
µ#00FFFF§
µShades§
µMix§
µMidnightBlue§
µ#191970§
µShades§
µMix§
µDodgerBlue§
µ#1E90FF§
µShades§
µMix§
µLightSeaGreen§
µ#20B2AA§
µShades§
µMix§
µForestGreen§
µ#228B22§
µShades§
µMix§
µSeaGreen§
µ#2E8B57§
µShades§
µMix§
µDarkSlateGray§
µ#2F4F4F§
µShades§
µMix§
µDarkSlateGrey§
µ#2F4F4F§
µShades§
µMix§
µLimeGreen§
µ#32CD32§
µShades§
µMix§
µMediumSeaGreen§
µ#3CB371§
µShades§
µMix§
µTurquoise§
µ#40E0D0§
µShades§
µMix§
µRoyalBlue§
µ#4169E1§
µShades§
µMix§
µSteelBlue§
µ#4682B4§
µShades§
µMix§
µDarkSlateBlue§
µ#483D8B§
µShades§
µMix§
µMediumTurquoise§
µ#48D1CC§
µShades§
µMix§
µIndigo §
µ#4B0082§
µShades§
µMix§
µDarkOliveGreen§
µ#556B2F§
µShades§
µMix§
µCadetBlue§
µ#5F9EA0§
µShades§
µMix§
µCornflowerBlue§
µ#6495ED§
µShades§
µMix§
µMediumAquaMarine§
µ#66CDAA§
µShades§
µMix§
µDimGray§
µ#696969§
µShades§
µMix§
µDimGrey§
µ#696969§
µShades§
µMix§
µSlateBlue§
µ#6A5ACD§
µShades§
µMix§
µOliveDrab§
µ#6B8E23§
µShades§
µMix§
µSlateGray§
µ#708090§
µShades§
µMix§
µSlateGrey§
µ#708090§
µShades§
µMix§
µLightSlateGray§
µ#778899§
µShades§
µMix§
µLightSlateGrey§
µ#778899§
µShades§
µMix§
µMediumSlateBlue§
µ#7B68EE§
µShades§
µMix§
µLawnGreen§
µ#7CFC00§
µShades§
µMix§
µChartreuse§
µ#7FFF00§
µShades§
µMix§
µAquamarine§
µ#7FFFD4§
µShades§
µMix§
µMaroon§
µ#800000§
µShades§
µMix§
µPurple§
µ#800080§
µShades§
µMix§
µOlive§
µ#808000§
µShades§
µMix§
µGray§
µ#808080§
µShades§
µMix§
µGrey§
µ#808080§
µShades§
µMix§
µSkyBlue§
µ#87CEEB§
µShades§
µMix§
µLightSkyBlue§
µ#87CEFA§
µShades§
µMix§
µBlueViolet§
µ#8A2BE2§
µShades§
µMix§
µDarkRed§
µ#8B0000§
µShades§
µMix§
µDarkMagenta§
µ#8B008B§
µShades§
µMix§
µSaddleBrown§
µ#8B4513§
µShades§
µMix§
µDarkSeaGreen§
µ#8FBC8F§
µShades§
µMix§
µLightGreen§
µ#90EE90§
µShades§
µMix§
µMediumPurple§
µ#9370D8§
µShades§
µMix§
µDarkViolet§
µ#9400D3§
µShades§
µMix§
µPaleGreen§
µ#98FB98§
µShades§
µMix§
µDarkOrchid§
µ#9932CC§
µShades§
µMix§
µYellowGreen§
µ#9ACD32§
µShades§
µMix§
µSienna§
µ#A0522D§
µShades§
µMix§
µBrown§
µ#A52A2A§
µShades§
µMix§
µDarkGray§
µ#A9A9A9§
µShades§
µMix§
µDarkGrey§
µ#A9A9A9§
µShades§
µMix§
µLightBlue§
µ#ADD8E6§
µShades§
µMix§
µGreenYellow§
µ#ADFF2F§
µShades§
µMix§
µPaleTurquoise§
µ#AFEEEE§
µShades§
µMix§
µLightSteelBlue§
µ#B0C4DE§
µShades§
µMix§
µPowderBlue§
µ#B0E0E6§
µShades§
µMix§
µFireBrick§
µ#B22222§
µShades§
µMix§
µDarkGoldenRod§
µ#B8860B§
µShades§
µMix§
µMediumOrchid§
µ#BA55D3§
µShades§
µMix§
µRosyBrown§
µ#BC8F8F§
µShades§
µMix§
µDarkKhaki§
µ#BDB76B§
µShades§
µMix§
µSilver§
µ#C0C0C0§
µShades§
µMix§
µMediumVioletRed§
µ#C71585§
µShades§
µMix§
µIndianRed §
µ#CD5C5C§
µShades§
µMix§
µPeru§
µ#CD853F§
µShades§
µMix§
µChocolate§
µ#D2691E§
µShades§
µMix§
µTan§
µ#D2B48C§
µShades§
µMix§
µLightGray§
µ#D3D3D3§
µShades§
µMix§
µLightGrey§
µ#D3D3D3§
µShades§
µMix§
µPaleVioletRed§
µ#D87093§
µShades§
µMix§
µThistle§
µ#D8BFD8§
µShades§
µMix§
µOrchid§
µ#DA70D6§
µShades§
µMix§
µGoldenRod§
µ#DAA520§
µShades§
µMix§
µCrimson§
µ#DC143C§
µShades§
µMix§
µGainsboro§
µ#DCDCDC§
µShades§
µMix§
µPlum§
µ#DDA0DD§
µShades§
µMix§
µBurlyWood§
µ#DEB887§
µShades§
µMix§
µLightCyan§
µ#E0FFFF§
µShades§
µMix§
µLavender§
µ#E6E6FA§
µShades§
µMix§
µDarkSalmon§
µ#E9967A§
µShades§
µMix§
µViolet§
µ#EE82EE§
µShades§
µMix§
µPaleGoldenRod§
µ#EEE8AA§
µShades§
µMix§
µLightCoral§
µ#F08080§
µShades§
µMix§
µKhaki§
µ#F0E68C§
µShades§
µMix§
µAliceBlue§
µ#F0F8FF§
µShades§
µMix§
µHoneyDew§
µ#F0FFF0§
µShades§
µMix§
µAzure§
µ#F0FFFF§
µShades§
µMix§
µSandyBrown§
µ#F4A460§
µShades§
µMix§
µWheat§
µ#F5DEB3§
µShades§
µMix§
µBeige§
µ#F5F5DC§
µShades§
µMix§
µWhiteSmoke§
µ#F5F5F5§
µShades§
µMix§
µMintCream§
µ#F5FFFA§
µShades§
µMix§
µGhostWhite§
µ#F8F8FF§
µShades§
µMix§
µSalmon§
µ#FA8072§
µShades§
µMix§
µAntiqueWhite§
µ#FAEBD7§
µShades§
µMix§
µLinen§
µ#FAF0E6§
µShades§
µMix§
µLightGoldenRodYellow§
µ#FAFAD2§
µShades§
µMix§
µOldLace§
µ#FDF5E6§
µShades§
µMix§
µRed§
µ#FF0000§
µShades§
µMix§
µFuchsia§
µ#FF00FF§
µShades§
µMix§
µMagenta§
µ#FF00FF§
µShades§
µMix§
µDeepPink§
µ#FF1493§
µShades§
µMix§
µOrangeRed§
µ#FF4500§
µShades§
µMix§
µTomato§
µ#FF6347§
µShades§
µMix§
µHotPink§
µ#FF69B4§
µShades§
µMix§
µCoral§
µ#FF7F50§
µShades§
µMix§
µDarkorange§
µ#FF8C00§
µShades§
µMix§
µLightSalmon§
µ#FFA07A§
µShades§
µMix§
µOrange§
µ#FFA500§
µShades§
µMix§
µLightPink§
µ#FFB6C1§
µShades§
µMix§
µPink§
µ#FFC0CB§
µShades§
µMix§
µGold§
µ#FFD700§
µShades§
µMix§
µPeachPuff§
µ#FFDAB9§
µShades§
µMix§
µNavajoWhite§
µ#FFDEAD§
µShades§
µMix§
µMoccasin§
µ#FFE4B5§
µShades§
µMix§
µBisque§
µ#FFE4C4§
µShades§
µMix§
µMistyRose§
µ#FFE4E1§
µShades§
µMix§
µBlanchedAlmond§
µ#FFEBCD§
µShades§
µMix§
µPapayaWhip§
µ#FFEFD5§
µShades§
µMix§
µLavenderBlush§
µ#FFF0F5§
µShades§
µMix§
µSeaShell§
µ#FFF5EE§
µShades§
µMix§
µCornsilk§
µ#FFF8DC§
µShades§
µMix§
µLemonChiffon§
µ#FFFACD§
µShades§
µMix§
µFloralWhite§
µ#FFFAF0§
µShades§
µMix§
µSnow§
µ#FFFAFA§
µShades§
µMix§
µYellow§
µ#FFFF00§
µShades§
µMix§
µLightYellow§
µ#FFFFE0§
µShades§
µMix§
µIvory§
µ#FFFFF0§
µShades§
µMix§
µWhite§
µ#FFFFFF§
µShades§
µMix§
HTML Quick List from W3Schools. Print it, fold it, and put it in your pocket.
<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>
Iframe
<iframe src="demo_iframe.htm"></iframe>
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">
<input type="text" name="email" size="40" maxlength="50" />
<input type="password" />
<input type="checkbox" checked="checked" />
<input type="radio" checked="checked" />
<input type="submit" value="Send" />
<input type="reset" />
<input type="hidden" />
<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>
Source : http://www.w3schools.com/html/html_quick.asp