Monday, 24 December 2012

Images.


Images are a staple of any web designer, so it is very important that you understand how to use them properly. In order to place an image onto a website, one needs to know where the image file is located within the file tree of the web server -- the URL (Unified Resource Locator).


Use the <img /> tag to place an image on your webpage. Like the <br /> tag, <img /> tag does not require a formal ending tag. Instead, all we need to do to close this tag out with a slash (/) placed just inside the ending bracket (/>).

HTML Image Code:
<img src="http://www.tizag.com/pics/htmlT/sunset.gif" />
HTML Image:

So that you can follow along with us, we've provided a global URL of an image we have stored on Tizag's web server. If you have an active connection to the internet, you should be able to use the URL in the example to render this image on your own web page. If not, you will have to download (right click the image and Save As...on a PC, control-click and Save on a Mac). Once saved to your local computer, point the image src attribute to the recently downloaded image file. It might help to save the image file in the same folder as your web page.

html - image src attribute
The source attribute (src) is what makes an image tag display an image. An image source is a URL value and should point to the directory location of an image file. Let's take one more look at the code from our first HTML image example.

HTML Image Code:
<img src="http://www.tizag.com/pics/htmlT/sunset.gif" />
An image source value is essentially the URL of a picture file and tells the web browser where the image is located so that it can then display the image correctly.

html - source urls
Image source URLs can be either local or global, meaning that the picture files you wish to display on your website can be either hosted locally on your machine (local) or hosted elsewhere on some other web site domain (global).

Global: http://www.tizag.com/pics/htmlT/sunset.gif
Local: pics/sunset.gif
Local URLs are relative to the file path of the web page itself. For example, if the picture file is placed inside the same directory as the web page, then the local URL for the image would simply be the name of the image, since it is residing in the same directory as the HTML page.

Local URLs Explained:
Local Src Location Description
src="sunset.gif" picture file resides in same directory as .html file
src="pics/sunset.gif" picture file resides in the pics directory
src="../sunset.gif" picture resides one folder "up" from the .html file
src="../pics/sunset.gif" picture file resides in the pics directory, one folder "up" from the .html file.
Pictures must reside on the same web host as your .html file in order for you to use local URLs. A URL cannot contain drive letters such as C:\, since a src URL is a relational interpretation based on the location of the.html file and the location of the picture file. Something like src="C:\www\web\pics\" will not work.

Each URL format has its pros and cons. Using the URL of pictures on other sites poses a problem if the other site happens to change the physical location of the picture file. Copying the file directly to your web server solves this problem. However, as you continue to upload picture files to your system, you may eventually run short on hard drive space. Use your best judgment based upon your situation.

html - image height and width attributes
Height and width are HTML attributes that define an element's height and width properties. These values can either be percentage-based (%) or rely on pixel sizes.

HTML Height and Width Attributes:
<img src="sunset.gif" height="50" width="100" />
HTML Height and Width (Pixels):

Above, we've used hard-coded pixel values for the height and width of the sunset image to ensure that this image will always render 50 pixels high by 100 pixels wide. By hard-coding these values, we are ensuring that the image will only display 50 pixels high by 100 pixels wide, even if the picture file itself happens to be much larger. If the dimensions of the picture are much larger, then we risk some severe skewing as the browser tries to shrink our image into our small box.

Height and width values can also be a percentage. Percentage values are relative to the parent HTML element (usually the body), which means if you have a parent element like a <body> element that is the whole screen (1024x768), then an image with a height and width of 100% will take up that entire body element (1024x768). In our example below, we have placed the image in a table element that is about 400 pixels wide by 200 pixels tall.

HTML Height and Width Code:
<table height='200' width='400'>
  <tr>
    <td>
      <img src="sunset.gif" height="100%" width="100%">
    </td>
  </tr>
</table>
HTML Height and Width (Percentage):

This image is now pixelated, having been rendered to fill the 400x200 table element. The reason we are seeing a low-quality, pixelated rendering of the image is because the actual image file is much smaller than 400x200 and has been stretched by the web browser because we coded it to do so.

Here's a few things to remember when trying to place images on your web page:

Maintain the same height to width ratio. The ratio is critical, and must be maintained to avoid skewing.
Always scale down. -- Larger images will always scale down nicely and continue to look sharp.
If no height or width attribute is specified inside the <img> tag, the browser will use the actual dimensions of the image file to render the image. This can cause problems with the page layout if the picture file is too large, as other HTML elements will be moved further down the page in the event of an over-sized image.

Another concept to keep in mind is that as a browser begins rendering HTML components, it handles them one after another in sequence. Before it can move from one element on to the next, the browser needs to know the size and shape of an element. If this information is provided in the tag, that's one less step required by the browser to render an image element and will result in the page loading faster for your users.

html - alternative attribute
The alt attribute specifies alternate text to be displayed if for some reason the browser cannot find the image, or if a user has image files disabled in their web browser settings. Text-only browsers greatly depend on the alt attribute since they are not capable of displaying pictures.

HTML Alternative Attribute (alt):
<img src="http://example.com/brokenlink/sunset.gif" alt="Beautiful Sunset" />
HTML Alternative Text Attribute:

The alt attribute is also an attribute that search engines may look for when displaying images. The text value contained within this attribute must reflect the substance of the image in order to receive "credit" from a search engine.

html - horizontally align images
Images can be aligned horizontally to the right or to the left of other elements using the align attribute. Image elements are aligned to the left by default.

align
right
left
HTML Align Attribute Code:
<img src="sunset.gif" align="right">

HTML Image Align: Right:

As you can see, the image's right edge has now been aligned with the right edge of the display box. Since the display box is the parent element, this is the desired behavior for the align attribute. If we take this example a step further, you can achieve some really great designs by embedding aligned images inside of paragraph <p> elements.

HTML Image Align Code:
<p>This is paragraph 1, yes it is...</p>
<p>
<img src="sunset.gif" align="right">
The image will appear along the...isn't it?
</p>
<p>This is the third paragraph that appears...</p>
Image Wrap Around:
This is paragraph 1, yes it is. I think this paragraph serves as a nice example to show how this image alignment works.

The image will appear along the right-hand side of the paragraph. As you can see this is very nice for adding a little eye candy that relates to the specified paragraph. If we were talking about beautiful tropical sunsets, this picture would be perfect. But we aren't talking about that, so it's rather a waste, isn't it?

This is the third paragraph that appears below the paragraph with the image!

html gifs vs. jpegs vs. pngs
Gifs are best used for banners, clip art, and buttons. The main reason for this is that .gif files can have transparent backgrounds -- a priceless attribute when it comes to web design. On the down side, .gif files are limited to only 256 colors and any .gif image containing more than a few colors tends to have a larger file size than their .jpeg or .png counterparts. Large picture files are a plague of web design!

Jpegs have an unlimited color wheel and a high compression rate, which downsizes your load times and saves on hard drive space. Although .jpeg (or .jpg) files don't allow for transparent backgrounds, their size/quality ratio is outstanding. It's best to use .jpeg files for photo galleries or artwork. Avoid using .jpeg files for graphical designs, though; stick to using them for thumbnails, backgrounds, and photo galleries.

PNG image files are the best of both worlds. They have a large color wheel, low file size, and allow for transparencies like .gif images do. With a high-compression rate and transparent coloring, they might just be the best format for any web graphics.

When in doubt, try saving an image in multiple formats and decide which is better, keeping file size and quality in mind.

Head


HTML Head Tutorial

Browser Support
   
The head section of a web page is a container element. It can contain a variety of items, including but not limited to:
the page title
meta data
links to external resources (style sheets, scripts, etc.)
embedded styles
JavaScripts
The title tag is the only required element. Here's an example:

<html>
<head>
<title>Your Page Title</title>
</head>
<body>
Your web page content...
</body>
</html>

Links


html - text links (anchors)
The World Wide Web got its spidery name from the plentiful connections (links) that link websites together with the click of a button. What most people don't know is that HTML links are actually HTML anchors constructed using anchor tags (<a>).
HTML Text Link:
<a>I am a text link!</a>
HTML Text Link:
I am a text link!
While the example above appears and feels like a text link when viewed through a web browser, the element is incomplete as it is missing a vital attribute that references another web page called a Hypertext Reference (href).

html - hypertext reference (href)
A Hypertext Reference (href) is an HTML attribute of an anchor (link) tag that requires a valid URL in order to properly direct a user to a different location. In other words, this Hypertext Reference is where users will navigate to if they do click on this link. Use the demonstration below as a reference.

HTML Text Link Code:
<a href="http://www.tizag.com/" target="_blank">Tizag Home</a>
<br />
<a href="http://www.espn.com/" target="_blank">ESPN Home</a>
<br />
<a href="http://www.yahoo.com/" target="_blank">Yahoo Home</a>
HTML Text Links:
Tizag Home
ESPN Home
Yahoo Home
The address of a website is called a Uniform Resource Locator (a URL), and it acts like a street address for a website as a user is directed from one site to another. There are different types of URLs, and each has a slightly different look. The examples above link to what are known as Global URLs, since they are external web addresses that do not reside on the Tizag.com domain. Here's a look at the different types of URLs.

HTML Text Link Code:
Global - href="http://www.cnn.com/" Links to other domains outside your website domain.
Local - href="../internal/mypage2.html"   Links to other pages within your website domain.
Internal - href="#anchorname" Links to anchors embedded in the current web page.
html - link targets
The target attribute defines how each link will open when clicked. Will each one open in a new window, or will each one open in the current browser window? As the web designer, you call the shots as to how a user navigates from page to page, so long as you know how to handle the target attribute.

Link Targets:
Target= Description
_blank Opens new page in a new browser window
_self Loads the new page in the current window
_parent Loads new page into a parent frame
_top Loads new page into the current browser window, cancelling all frames
The two most important values are the top two, (target="_blank" and target="_self"). The _self value is generally the default. It loads each new page in the current browser window, while _blank opens up a new web browser window with each click of the text link.

The code below shows how you would link to ESPN.com, a popular sports website. The target attribute is added to allow the browser to open ESPN in a new window, so that the viewer can have a window that remains opened to our website. Here's the example.

HTML Link Target Code:
<a href="http://www.ESPN.com" target="_blank">ESPN.COM</a>
_blank Target:
ESPN.COM
Links are a big part of the user experience for any website. Always try to keep that in mind when working on a site's navigation. A web page that opens a new web browser window each time a user clicks a link is not the greatest way to entice users to stick around.

html - email links
Creating an email link is simple. If you want people to mail you about your site, a good way to do it is place an email link with a subject line already filled out for them.

HTML Email Link Code:
<a href="mailto:email@tizag.com?subject=Feedback" >Email@tizag.com</a>
Email Links:
Email@tizag.com
In some circumstances, it may be necessary to fill in the body of the email for the user as well.

HTML Email Link Code:
<a href="mailto:email@tizag.com?subject=Feedback&body=Sweet site!">
Email@tizag.com</a>
Complete Email:
Email@tizag.com
html - download links
Placing files available for download is done in exactly the same fashion as placing text links. However, things become complicated if we want to place image links for download. The best solution for images is to use a thumbnail links, which we will discuss in the next lesson.

HTML Download Link Code:
<a href="http://www.tizag.com/pics/htmlT/blanktext.zip">Text Document</a>
Download a Text Document:
Text Document
html - default links; base
Use the <base> tag in the head element to set a default URL for all links on a page to go to. It's always a good idea to set a base tag just in case your links become bugged somewhere down the line. Usually, you should set your base to your home page.

HTML Base Link Code:
<head>
  <base href="http://www.tizag.com/" />
</head>

HTML Text formatting


HTML text formatting

If you want people to read what you have written, then structuring your text well is even more important on the Web than when writing for print. People have trouble reading wide, long, paragraphs of text on Web sites unless they are broken up well.

This section will teach you basic text formatting elements .

Whitespace and Flow:
Before you start to mark up your text, it is best to understand what HTML does when it comes across spaces and how browsers treat long sentences and paragraphs of text.

You might think that if you put several consecutive spaces between two words, the spaces would appear between those words onscreen, but this is not the case; by default, only one space will be displayed. This is known as white space collapsing. So you need to use special HTML tags to create multiple spaces.

Similarly, if you start a new line in your source document, or you have consecutive empty lines, these will be ignored and simply treated as one space. So you need to use special HTML tags to create more number of empty lines.



Centring Content - The <center> Element:
You can use <center> tag to put any content in the center of the page or any table cell.

Example:

<p>This is not in the center.</p>
<center>
<p>This is in the center.</p>
</center>
This will produce following result:

This is not in the center.

This is in the center.

Nonbreaking Spaces:
Suppose you were to use the phrase "12 Angry Men." Here you would not want a browser to split the "12" and "Angry" across two lines:

A good example of this technique appears in the movie "12 Angry Men."
In cases where you do not want the client browser to break text, you should use a nonbreaking space entity (&nbsp;) instead of a normal space. For example, when coding the "12 Angry Men" paragraph, you would use something similar to the following code:

<p>A good example of this technique appears in the movie "12&nbsp;Angry&nbsp;Men."</p>
Soft Hyphens:
Occasionally, you will want to allow a browser to hyphenate long words to better justify a paragraph. For example, consider the following code and its resulting output.

<p style="text-align: justify;"> The morbid fear of the number 13, or triskaidekaphobia, has plagued some important historic figures like Mahamiya and Nanao.</p>
In cases where you want a client browser to be able to hyphenate a word if necessary, use the soft hyphen entity (&shy;) to specify where a word should be hyphenated. So above example should be written as follows:

<p style="text-align: justify;"> Example for soft hyphen - The morbid fear of the number 13, or tri&shy;skai&shy;deka&shy;phobia, has plagued some important historic figures like Mahamiya and Nanao.</p>
This will produce following result:

Example for soft hyphen - The morbid fear of the number 13, or tri­skai­deka­phobia, has plagued some important historic figures like Mahamiya and Nanao.

NOTE: This may notwork with some web browsers.

Preserve Formatting - The <pre> Element:
Sometimes you want your text to follow the exact format of how it is written in the HTML document. In those cases, you can use the preformatted tag (<pre>).

Any text between the opening <pre> tag and the closing </pre> tag will preserve the formatting of the source document.

<pre>
function testFunction( strText ){
   alert (strText)
}
</pre>
This will produce following result:

function testFunction( strText ){
   alert (strText)
}

Horizontal Rules - The <hr /> Element
Horizontal rules are used to visually break up sections of a document. The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly.

For example you may want to give a line between two paragraphs as follows:

<p>This is paragraph one and should be on top</p>
<hr />
<p>This is paragraph two and should be at bottom</p>
This will produce following result:

This is paragraph one and should be on top

This is paragraph two and should be at bottom

Again <hr /> tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them.

Note: The <hr /> element has a space between the characters br and the forward slash. If you omit this space, older browsers will have trouble rendering the line break, while if you miss the forward slash character and just use <hr> it is not valid XHTML


Presentational Tags:

If you use a word processor, you are familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML.

Bold Text - The <b> Element:
Anything that appears in a <b>...</b> element is displayed in bold, like the word bold here:

<p>The following word uses a <b>bold</b> typeface.</p>
This will produce following result:

The following word uses a bold typeface.



Italic Text - The <i> Element:
Anything that appears in a <i>...</i> element is displayed in italicized, like the word italicized here:

<p>The following word uses a <i>italicized</i> typeface.</p>
This will produce following result:

The following word uses a italicized typeface.



Underlined Text - The <u> Element:
Anything that appears in a <u>...</u> element is displayed with underline, like the word underlined here:

<p>The following word uses a <u>underlined</u> typeface.</p>
This will produce following result:

The following word uses a underlined typeface.



Strike Text - The <strike> Element:
Anything that appears in a <strike>...</strike> element is displayed with strikethrough, which is a thin line through the text:

<p>The following word uses a <strike>strikethrough</strike> typeface.</p>
This will produce following result:

The following word uses a strikethrough typeface.


Monospaced font - The <tt> Element:
The content of a <tt> element is written in monospaced font. Most fonts are known as variable-width fonts because different letters are of different widths (for example, the letter m is wider than the letter i). In a monospaced font, however, each letter is the same width.

<p>The following word uses a <tt>monospaced</tt> typeface.</p>
This will produce following result:

The following word uses a monospaced typeface.

To Become more comfortable - Do Online Practice

Superscript Text - The <sup> Element:
The content of a <sup> element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character.s height above the other characters.

<p>The following word uses a <sup>superscript</sup> typeface.</p>
This will produce following result:

The following word uses a superscript typeface.



Subscript Text - The <sub> Element:
The content of a <sub> element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character.s height beneath the other characters.

<p>The following word uses a <sub>subscript</sub> typeface.</p>
This will produce following result:

The following word uses a subscript typeface.



Larger Text - The <big> Element:
The content of the <big> element is displayed one font size larger than the rest of the text surrounding it.

<p>The following word uses a <big>big</big> typeface.</p>
This will produce following result:

The following word uses a big typeface.


Smaller Text - The <small> Element:
The content of the <small> element is displayed one font size smaller than the rest of the text surrounding it.

<p>The following word uses a <small>small</small> typeface.</p>
This will produce following result:

The following word uses a small typeface.


Grouping - The <div> and <span> Elements :
The <div> and <span> elements allow you to group together several elements to create sections or subsections of a page.

For example, you might want to put all of the footnotes on a page within a <div> element to indicate that all of the elements within that <div> element relate to the footnotes. You might then attach a style to this <div> element so that they appear using a special set of style rules.

The <div> element is used to group block-level elements together:

<div id="menu" align="middle" >
<a href="/index.htm">HOME</a> |
<a href="/about/contact_us.htm">CONTACT</a> |
<a href="/about/index.htm">ABOUT</a>
</div>

<div id="content" align="left" bgcolor="white">
<h5>Content Articles</h5>
<p>Actual content goes here.....</p>
</div>
This will produce following result:

HOME | CONTACT | ABOUT
Content Articles

Actual content goes here.....

The <span> element, on the other hand, can be used to group inline elements only. So, if you had a part of a sentence or paragraph you wanted to group together you could use the <span> element.

<div><p>This is the example of <span style="color:green">span tag</span> and the <span style="color:purple">div tag</span> alongwith CSS</p></div>
This will produce following result:

This is the example of span tag and the div tag alongwith CSS

These tags are commonly used with CSS to allow you to attach a style to a section of a page.


For a complete list of HTML Tags and related attributes please check reference to HTML Tags Reference.

Paragraphs


Paragraphs
Now that you have the basic structure of an HTML document, you can mess about with the
 content a bit.

Go back to your text editor and add this lines to your page:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
<title>My first web page</title>
</head>

<body>
This is my first web page
How exciting
</body>

</html>
Look at the document in your browser.

You might have expected your document to appear as you typed it, on two lines, but
 instead you should see something like:

This is my first web page How exciting.

This is because web browsers don't usually take any notice of what line your code is on.It also doesn't take any notice of spaces  (you would get the same result if you typed "This is my first web page      How exciting").

If you want text to appear on different lines, you need to explicitly state that.

Change your two lines of content so that they look like this:


<p>This is my first web page</p>
<p>How exciting</p>
The p tag is for paragraph.

Look at the results of this. The two lines will now appear on two lines.

Think of the HTML content as if it were a book - with paragraphs where appropriate.

Emphasis
You can emphasise text in a paragraph using em (emphasis) and strong (strong emphasis). These are two ways of doing pretty much the same thing, although traditionally, browsers display em in italics and strong in bold.


<p>Yes, that <em>is</em> what I said. How <strong>very</strong> exciting.</p>
Line breaks
The line-break tag can also be used to separate lines like this:


This is my first web page<br />
How exciting
However, this method is over-used and shouldn't be used if two blocks of text are intended to
 be separate from one another (because if that's what you want to do you probably want the p tag).

Note that because there's no content involved with the line-break tag, there is no closing
tag and it closes itself with a "/" after the "br".

Headings


HTML Headings

HTML Headings are just the same as you have expected - 'Heading' or 'Title' of the webpage.
Headings are defined with <h1> to <h6> tags, 'h1' being the most important and prominent. The size of the text between these tags reduces with 'h2', 'h3' and so on. By default, headings are displayed in bold text.
Now let's write some HTML codes to test the headings in browser. Open notepad or any other text-editor and type the following html codes. Alternatively as usual, you can use HTML Code Tester.

HTML Headings Example

<html>
<head>
    <title>HTML Headings</title>
</head>
<body>
    <h1>
        This is 'h1' heading</h1>
    <h2>
        This is 'h2' heading</h2>
    <h3>
        This is 'h3' heading</h3>
    <h4>
        This is 'h4' heading</h4>
    <h5>
        This is 'h5' heading</h5>
    <h6>
        This is 'h6' heading</h6>
</body>
</html>

Save this webpage as 'headings.html' in html folder. Open this file in your web browser to see the difference between various html headings. Did you notice the gap between the html headings? This is because browsers add some empty space just before and after headings to make these more prominent.

Attributes.


Attributes

You can add attributes to a number of elements.

What is an attribute?

As you probably remember, elements give structure to a HTML document and tells the browser how you want your website to be presented (for example, <br /> informs the browser to make a line break). In some elements you can add more information. Such additional information is called an attribute.

Example 1:


<h2 style="background-color:#ff0000;">My friendship with HTML</h2>


Attributes are always written within a start tag and are followed by an equals sign and the attribute details written between inverted commas. The semicolon after the attribute is for separating different style commands. We will get back to that later.

What is the catch?

There are many different attributes. The first one you will learn is style. With the style attribute you can add layout to your website. For instance a background colour:

Example 2:


<html>

 <head>
 </head>

 <body style="background-color:#ff0000;">
 </body>

</html>


will show a completely red page in the browser - go ahead and see for yourself. We will explain in greater detail how the colour system works in a few moments.

Note that some tags and attributes use US spelling i.e. color instead of colour. It is important that you are careful to use the same spelling as we use in the examples in this tutorial - otherwise, browsers will not be able to understand your codes. Also, don't forget to always close the inverted commas (quotation marks) after an attribute.

How did the page become red?

In the above example, we asked for the background colour with the code "#ff0000". This is the colour code for red using so called hexadecimal numbers (HEX). Each colour has its own hexadecimal number. Here are some examples:

White: #ffffff
Black: #000000 (zeros)
Red: #ff0000
Blue: #0000ff
Green: #00ff00
Yellow: #ffff00

A hexadecimal colour code consists of # and six digits or letters. There are more than 1000 HEX codes and it is not easy to figure out which HEX code is tied to a specific colour. To make it easier we have made a chart of the 216 most commonly used colours: 216 Web Safe Colour Chart.

You can also use the English name for the most common colours (white, black, red, blue, green and yellow).

Example 3:


<body style="background-color: red;">


Enough about colours. Let's get back to the attributes.

Which elements can use attributes?

Different attributes can be applied to most elements.

You will often use attributes in tags such as the body tag while you will rarely use attributes in, for example, a br tag since a line break normally is a line break without any parameters to adjust.

Just as there are many different elements, so there are many different attributes. Some attributes are tailor made for one particular element while others can be used for many different element. And vice versa: some elements can only contain one kind of attribute while others can contain many.

It may sound a bit confusing but once you get acquainted with the different attributes it is actually very logical and you will soon see how easy they are to use and how many possibilities they provide.

This tutorial will introduce you to the most important attributes.

Sunday, 23 December 2012

Tags


What Is a Tag?

A tag is a method of formatting HTML documents.
With tags you can create italic or bold characters, make things blink, and can control the color and size of the lettering.
Tags can be "nested". This means that you can make something bold and italic and green and blinking by simply surrounding the previous tag with the next.
Tags can be used to insert pictures and graphics.
Tags can be used to create bulleted lists like this one, or numbered lists.
Tags look something like this: <b> chosen text </b> .
All tags use the < and > (less-than and greater-than symbols) to signal the browser. These are located above the comma and period keys.
Within a tag, capitalization doesn't matter. <FONT> is the same as <font> or <Font> . I usually don't bother capitalizing when I use tags. Below, I have used capital letters when I felt that the number "1" and the letter "l" might be confused.
It is essential to always close the tags! If not, the formatting will contaminate everything that follows it. But don't panic, closing tags is very easy, and even the most experienced surfers sometimes forget.
Italics

To make italics surround the chosen text with these tags:
<i> chosen text </i>

The "/i" tag is essential; this will close the tag and stop the italics. If this is not done, all the text which follows the first, <i> , tag will appear italicized.

Bold Lettering

To make letters bold surround the chosen text with these tags:
<b> chosen text </b>

The "/b" tag is essential; this will close the tag and stop the bold lettering. If this is not done, all the text which follows the first, <b> , tag will appear in bold.

Changing Font Size

There are three different ways to change the size of the font. Method 1, Method 2, and Method 3.
Also see below on how to change both the size and the color of the font at the same time.
The first method is to use the "big" and "small" tags.
For example, to increase the font by one degree surround the text with the following tags:

<big> chosen text </big>

If you want to make it even bigger, you surround it again:

<big> <big> chosen text </big> </big>

To make the font small, surround it with the small tag:

<small> chosen text </small>

If you want to make it even smaller, surround it with the tag again:

<small> <small> chosen text </small> </small>

The "/big" and "/small" tags are essential; they will close the tag and stop the special formatting. If this is not done, all the text which follows the first, <big> or <small> , tag will appear in the altered size.


The second method is to directly change the font size.
You can use + and - along with a number to shrink and grow the font:

<font size=+2> chosen text </font>

<font size=+1> chosen text </font> .........(same as <big> )

<font size=+0> chosen text </font> .........(plain text)

<font size=-1> chosen text </font> .........(same as <small> )

<font size=-2> chosen text </font>

Notice that when you get to larger fonts they tend to appear bold.

The " /font " tag is essential; it will close the tag and define the end of the specialized formatting. If this is not done, all the text which follows the first, <font size=> , tag will appear in the altered size.


The third method is to use what are called headers.
Headers are abbreviated with the letter "h" and a number from 1 to 6. For example:

<h5> chosen text </h5>

Along with the tag, I will demonstrate the result for each:

<h1> chosen text </h1>

<h2> chosen text </h2>

<h3> chosen text </h3>

<h4> chosen text </h4>

<h5> chosen text </h5>

<h6> chosen text </h6>

Notice that the header method also utilizes a bold font.

The "/h# " tag is essential; it will close the tag and define the end of the specialized formatting. If this is not done, all the text which follows the first, <h#> , tag will appear in the altered size.

Blinking Text

To make text blink surround the chosen text with these tags:
<blink> chosen text </blink>

Note: This will not show up if you are using Microsoft Explorer (Blame it on Bill Gates!).

The "/blink" tag is essential; this will close the tag and signal the end of the special formatting. If this is not done, all the text which follows the first, <blink> , tag will blink.

Use this sparingly, it can get a bit obnoxious if used overfrequently.

Changing Text Color

To change the color of the text surround the chosen text with the following tags:

<font color="color name"> chosen text </font>

The "/font" tag is essential; this will close the tag and signal the end of the colored text. If this is not done, all the text which follows the first, <font color=> , tag will appear in the altered color.

The "color name" can be one of two things. If you only want to use a common color, you can simply put in the name of that color. This works for the following colors:


<font color="black">Black</font>
<font color="white">White(White)</font>
<font color="yellow">Yellow(Yellow)</font>
<font color="orange">Orange</font>
<font color="pink">Pink(Pink)</font>
<font color="red">Red</font>
<font color="green">Green</font>
<font color="blue">Blue</font>
<font color="purple">Purple</font>
<font color="cyan">Cyan(Cyan)</font>
<font color="magenta">Magenta</font>
<font color="maroon">Maroon</font>
<font color="brown">Brown</font>
The second thing you can use as a "color name" is a numeric code for the color. This allows you to fine tune the color more than you can with the fixed colors listed above. For example you can have a deeper shade of blue, or a lighter brown.


To use this option you type:

<font color="#rrggbb"> chosen text </font>

Where "#rrggbb" is the code for a color. Don't forget the quotation marks or the # sign--they are necessary.

The "/font" tag is essential; this will close the tag and signal the end of the colored text. If this is not done, all the text which follows the first, <font color=> , tag will appear in the altered color.


Here is a short list of some of basic colors:
Here is a yellow color whose hex-code number is-- # f f f f 0 0 . (# f f f f 0 0)
Here is a red color whose hex-code number is-- # f f 0 0 0 0 . (# f f 0 0 0 0)
Here is a green color whose hex-code number is-- # 0 0 f f 0 0 . (# 0 0 f f 0 0)
Here is a light-blue color whose hex-code number is-- # 0 0 f f f f . (# 0 0 f f f f)
Here is another blue color whose hex-code number is-- # 1 f 8 1 a 6 . (# 1 f 8 1 a 6)
Here is a blue color whose hex-code number is-- # 0 0 0 0 f f . (# 0 0 0 0 f f)
Here is a purple color whose hex-code number is-- # f f 0 0 f f . (# f f 0 0 f f)



Changing Text Font

Changing the font of text online is one of the most frustrating parts of formatting for the web, because you never know what the person on the other end is going to see.

The reason for this is that the fonts you choose to use must already be loaded on the other person's computer. If they aren't, then they will just see their default font.

For example, if you really, really want to use "Tigerteeth ICG", because you think it looks great and is perfect for your site, you probably shouldn't bother. Few people will have "Tigerteeth" loaded on their machine, and only those who do will see it--everyone else will just see their default font (usually something like Times New Roman). To make matters even more complicated, Mac users will usually have a completely different set of fonts, so you need to think of them when choosing your font. There seems to be little or no standardization of fonts, some machines will contain one set, while another could have a very different set.

So, is it hopeless? Not entirely. If you want to use a really fancy font, which may be rare, or which you might have downloaded from a font website, then don't bother or find another way. But if you want to use a fixed-width font instead of a varying one, or if you want to use a sans serif font (one without those tiny little cross pieces which finish off letters) instead of one with them, you can do it. In other words, if you want a bit of a change, but aren't particular about what that change is, go ahead.

If you want to use less common fonts, you can go ahead and do so. The trick then is to pick several different fonts and use them all. This is similar to choosing the font you most want, then the second most-wanted one, then the third most-wanted, etc. When someone views your page, if they have the first font, that's what they'll see. If they don't, then they might have the second, and that is what they'll see. If not the second, then maybe they will have the third. With several fonts listed, you increase the possiblity that the other person will at least have one of them.

So, here's how to do it. Surround the chosen text with the following tags:

<font face="font name 1, font name 2, font name 3"> chosen text </font>

Notice where the quotation marks are--outside the entire list of fonts, not around each font.

The "/font" tag is essential; this will close the tag and signal the end of the colored text. If this is not done, all the text which follows the first, <font face=> , tag will appear in the altered font.

The "font name" is the name of the font, for example: Times New Roman, Arial, Verdana, Helvetica, or sans serif.

Examples:

<font face="Verdana, Arial, Helvetica, sans serif" size=2>"...The respect created by the conviction of his valuable qualities, though at first unwillingly admitted, had for some time ceased to be repugnant to her feeling; and it was now heightened into somewhat a friendlier nature, by the testimony so highly in his favor, and bringing forward his disposition in so amiable a light, which yesterday had produced. But above all, above respect and esteem, there was a motive within her of goodwill which could not be overlooked. It was gratitude; gratitude, not merely for having once loved her, but for living her still well enough to forgive all the petulance and acrimony of her manner in rejecting him, and all the unjust accusations accompanying her rejection..."

--Jane Austen, Pride and Prejudice</font>

<font face="Lucida Calligraphy, Lucida Handwriting, WhisperWrite, Brush Script MT" size=4 color=008080> Pride and Prejudice and Sense and Sensibility. </font>

Now, what if you really, really, really want to use a fancy font?

Well, if you have a large section of text, you might want to give up, but if you want to use a fancy font for titles on your page, or to make a small part of your page stand out, then you may try to use an image program to turn them into pictures:


One thing to keep in mind with images is the length of time they take to load into someone's browser. An entire page shouldn't be longer than about 75 KBs, text and images included. So, if you want to use a large image you will have little left for other items on the page. The image I just used above is about 4 KBs, so it won't take long to load and isn't a problem.

Nesting Tags

As can be seen above in the first method for changing font size, tags can be used together, or "nested".

For example, to make something both bold and italic use the following tags:

<b> <i> chosen text </i> </b>

or big and red:

<font color="#ff0000"> <big>chosen text </big> </font>

If you want to change both the color and the size of the font at the same time, it is easiest to do both in the same tag. For example:

<font size=+2 color="#0000ff"> chosen text </font>

As you can see, both the color and the size tags can be combined into one, when you use the <font> tag. It does not matter what order you use, <font color="#ff0000" size=+2> is the same as <font size=+2 color="#ff0000">.

Of course, you can add a font too:

<font size=+2 color="#0000ff" face="verdana, arial, helvetica, sans serif"> chosen text </font>

Again don't forget the </font> to close the tag.

How To Draw A Line Across The Screen

In this tutorial the different sections are divided by lines, or rules or bars, which cross the entire screen. This is very easy to do and needs only a single tag (no closing tag is necessary).

To draw a line across the page type:

<hr>

this stands for "horizontal rule", and the result will look like:



I have added a blank space above and below the horizantal rule, but usually the text would appear directly above

and below the line without any extra space, as I have just shown.


You can modify the bar in several ways.

You can make the line go across only a part of the page by specifying the width with a percentage, where 100% would mean the bar goes across the entire screen, smaller percentages make the line cross less of the screen:

<hr width=75%>

results in:

You can make the line thicker by specifying the size of the bar; the larger the number the wider the bar:

<hr size=10>

Results in:

You can also make the bar look solid by adding the word "noshade" to the tag:

<hr size=10 noshade>

Results in:

and

<hr noshade>

Results in:

If you use the width command to specify how much of the screen the bar will cross, then you can also tell the browser where you want the bar to appear: in the center of the screen, to the left or to the right. If you do not specify where you want the bar to appear, it will appear centered in the screen. This can be done with by adding "align=" to the tag:

<hr width=50% align=left>

results in:

<hr width=50% align=center>

results in:

<hr width=50% align=right>

results in:

Again, the <hr> tag is a very easy one, because you only need to put in a single tag and you do not need a second one to close the first.

How To Add Graphic Smiley Faces and Images


If you wish to add graphics such as  or , the tag looks a bit complicated but I will try to explain it.
First, here is what the tag for the yellow smiley-face looks like:
 = <IMG SRC="http://www.austen.com/tutorial/smiley.gif">
What this means:
  • IMG -- This stands for "image" and tells the browser that you are putting in a picture.
  • SRC -- This stands for "source" and refers to the location on the internet where the browser can find the image. (As said above, capitalization is unnecessary.)
  • http://www.austen.com/tutorial/ -- This is the location on the internet of the computer and directory in which the picture is stored.
  • smiley.gif -- Is the name of the actual file for 
    frown.gif -- is the name of the actual file for .
  • Notice that this tag stands alone, you do not need a second tag to close the first.
Note: The quotation marks around the file location (http etc.) are essential!
So the tag for pictures is: <img src="internet location"> , where "internet location" is the web address of the picture. This works with any picture or graphic on the web, not just those listed here.


How To Copy The Location Of An Image

If you see a picture somewhere on the web that you would like to use, and if you are using Netscape, you can automatically copy the location of the image. That is to say you can copy a location, such as http://www.austen.com/tutorial/smiley.gif, so that you can paste it into the tag without typing it all out. If you are using MSExplorer, it is not such a simple thing to do (blame it on Bill Gates!) .

Here, I will show what to do in the case of Netscape (it differs slightly depending on whether you live in the Mac world or the PC world).

For PC users,
Point at the image you want to use, and
Click the right mouse button (not the left, the right mouse button).
This will cause a menu to appear. One of the options in the menu is "Copy Image Location".
If you sellect this option, you can then paste the location (such as http://www.austen.com/tutorial/smiley.gif) into your tag.
For Mac users,
Point at the image you want to use, and
Click and hold down the mouse button.
This will cause a menu to appear. One of the options in the menu is "Copy Image Location".
If you sellect this option, you can then paste the location (such as http://www.austen.com/tutorial/smiley.gif) into your tag.
If you are using MSExplorer, the best way to find the URL, is to use load the image on its own page. Use the same methods listed for Netscape, but choose the "View Image" option. Once the image is loaded all by itself onto the browser, the "Location" line at the very top of the page will contain the full URL. You can highlight it and copy it from there, then paste it wherever you want.
Pictures on the web are sometimes copyrighted, so you should be careful to make sure that they are available for general use, or you have permission from the owner to use them. All of the graphics listed here can be used freely.

Advanced Graphics Information

For more advanced information of manipulating the appearence of a graphic on a page, see Manipulating Graphics With Text
How To Make a Link To Another Web Site

Making a link, such as Jane Austen Information Page, is very similar to inserting a graphic. One major difference is that there must be a second tag to close the first one. The Jane Austen link I just used looks like:
<a href="http://www.pemberley.com/janeinfo/janeinfo.html">Jane Austen Information Page</a>

The first tag consists of three basic parts:

The a stands for "anchor", and is the term used in HTML to refer to links.
The href stands for "hypertext-reference" (I think), and tells the browser you are making a link to another web site.
As in the case of graphics, the full internet location of the web site you are refering to is then inserted in quotation marks after an =. The web address, http://www.pemberley.com/janeinfo/janeinfo.html, is the location of Henry Churchyard's Jane Austen page. The address for the page you are currently looking at is (probably) http://www.austen.com/tutorial/index.html.
Once this first tag is complete, anything typed after it will appear as an underlined link until you insert the second, closing, tag </a>. For example, I could write the above link as
<a href="http://www.pemberley.com/janeinfo/janeinfo.html">Henry's Jane Austen Page </a>

or

<a href="http://www.pemberley.com/janeinfo/janeinfo.html">Hey guys! Click here </a>

If you do not close the tag, with the </a>, then everything that follows will appear as an underlined link.

How To Indent a Section Of Text

Sometimes when quoting text or when you want to set one section of the text apart from the rest, it is useful to be able to indent it. This technique is used frequently in writing to denote long passages of quoted material. To indent a block of text surround it with the tags:
<blockquote>chosen text</blockquote>

The blockquote tag also automatically inserts a blank line above and below the chosen text.

For example:

<blockquote>"...The respect created by the conviction of his valuable qualities, though at first unwillingly admitted, had for some time ceased to be repugnant to her feeling; and it was now heightened into somewhat a friendlier nature, by the testimony so highly in his favor, and bringing forward his disposition in so amiable a light, which yesterday had produced. But above all, above respect and esteem, there was a motive within her of goodwill which could not be overlooked. It was gratitude; gratitude, not merely for having once loved her, but for living her still well enough to forgive all the petulance and acrimony of her manner in rejecting him, and all the unjust accusations accompanying her rejection..."</blockquote>
--Jane Austen, Pride and Prejudice
Once again it is very important to stop the indentation with the </blockquote> tag.

How To Center a Section Of Text

Being able to center text or images comes in handy.
<center>chosen text</center>

The center tag also automatically inserts a blank line above and below the chosen text.

For example:

<center>"...The respect created by the conviction of his valuable qualities, though at first unwillingly admitted, had for some time ceased to be repugnant to her feeling; and it was now heightened into somewhat a friendlier nature, by the testimony so highly in his favor, and bringing forward his disposition in so amiable a light, which yesterday had produced. But above all, above respect and esteem, there was a motive within her of goodwill which could not be overlooked. It was gratitude; gratitude, not merely for having once loved her, but for living her still well enough to forgive all the petulance and acrimony of her manner in rejecting him, and all the unjust accusations accompanying her rejection..."</center>
--Jane Austen, Pride and Prejudice
Once again it is very important to stop the centering with the </center> tag.

How To Right-Justify a Section Of Text

Since we're doing paragraph formatting, let's do right-justifying. This one is a little different, since it uses the <p> tag to make the formatting.
<p align=right>chosen text</p>

The big thing to notice here is that the paragraph tag must be opened and closed like other tags (usually you don't need to close a paragraph tag, but here you do, since you have to tell the browser when to stop the formatting.)

For example:

<p align=right>"...The respect created by the conviction of his valuable qualities, though at first unwillingly admitted, had for some time ceased to be repugnant to her feeling; and it was now heightened into somewhat a friendlier nature, by the testimony so highly in his favor, and bringing forward his disposition in so amiable a light, which yesterday had produced. But above all, above respect and esteem, there was a motive within her of goodwill which could not be overlooked. It was gratitude; gratitude, not merely for having once loved her, but for living her still well enough to forgive all the petulance and acrimony of her manner in rejecting him, and all the unjust accusations accompanying her rejection..."</p>

--Jane Austen, Pride and Prejudice

Once again it is very important to stop the justification with the </p> tag.

As you might be able to guess, this works with align=center as well as align=right.

In addition, you can justify both sides of text by using align=justify. This will cause the browser to space the words differently, so that they line up with the right margin:

<p align=justify>"...The respect created by the conviction of his valuable qualities, though at first unwillingly admitted, had for some time ceased to be repugnant to her feeling; and it was now heightened into somewhat a friendlier nature, by the testimony so highly in his favor, and bringing forward his disposition in so amiable a light, which yesterday had produced. But above all, above respect and esteem, there was a motive within her of goodwill which could not be overlooked. It was gratitude; gratitude, not merely for having once loved her, but for living her still well enough to forgive all the petulance and acrimony of her manner in rejecting him, and all the unjust accusations accompanying her rejection..."</p>

--Jane Austen, Pride and Prejudice

How To Make Bulleted Lists

First you must tell the browser you are making an unnumbered list by typing:
<UL>

Then you must denote the start of each item in the list by typing:
<LI>

in front of the item.

Then you must tell the browser that the list is complete by closing the list tag:
</UL>

Notice that the <LI> tags do not need to be closed.

Here is an example:

<UL>

<LI> Item one on list.

<LI> Item two on list.

<LI> Item three on list.

</UL>


Results in the following list:
  • Item one on list.
  • Item two on list.
  • Item three on list.


How To Make Numbered Lists

The method for making numbered lists is identical to that for bulleted lists. The only difference is that instead of an unnumbered list (UL) it is an ordered list (OL). So just replace the "UL's" in the last section with "OL's" and you have it:
Here is an example:
<OL>
<LI> Item one on list.
<LI> Item two on list.
<LI> Item three on list.
</OL>
Results in the following list:
  1. Item one on list.
  2. Item two on list.
  3. Item three on list.
Again the list is automatically indented.
It is also possible to change the style of the numbers from 1. 2. 3., to A. B. C., a. b. c., I. II. III., or i. ii. iii.
  1. For capital letters add type=A to the starting tag: <OL type=A>.
  1. For lower-case letters add type=a to the starting tag: <OL type=a>.
  1. For capital Roman numerals add type=I to the starting tag: <OL type=I>.
  1. For lower-case Roman numerals add type=i to the starting tag: <OL type=i>.
Note: This is one of the few cases in HTML where capitilization is necessary: types "A" and "a" give different results, and "I" and "i" give different results.
For example (I'll only show one of these):
<OL type=i>
<LI> Item one on list.
<LI> Item two on list.
<LI> Item three on list.
</OL>
Results in the following list:
  1. Item one on list.
  2. Item two on list.
  3. Item three on list.
Using these techniques and by nesting the lists, it is possible to create outlines:
  1. Introduction
  2. The Basics
    1. What is an HTML tag?
      1. Formatting text
      2. Syntax
        1. Uses <and>
        2. Usually used in pairs.
        3. The second tag closes the first
      3. Capitalization
    2. Italics
    3. Bold
    4. Size of font
      1. Font attribute
      2. Headers
      3. Big and Small attributes
    5. Color of font
  3. Advanced
    1. Inserting Graphics
    2. Inserting Links
  4. Conclusion



HTML elements

HTML - elements

When you land on a website, all the items you see in front of you -- the paragraph texts, the page banners, and the navigation links are all elements of the web page. The term element is a just a name given to any piece of a web page. Many HTML elements are actually invisible to visitors and work quietly behind the scenes to provide web crawlers and search engines useful information about the site.

An element consists of three essential pieces: an opening tag, the content, and a closing tag.

<p> - opening paragraph tag
Element Content - "Once upon a time..."
</p> - closing tag

A Complete HTML Element:
<p>Once upon a time...</p>
A single page can contain hundreds or thousands of elements, but when all is said and done, every HTML page should have a bare minimum of four critical elements: the HTML, head, title, and body elements.

html - <html> element...</html>
<html> is the element that begins and ends each and every web page. Its sole purpose is to hold each web element nicely in position and serves the role of book cover; all other HTML elements are encapsulated within the <html> element. The tag also lets web browsers know, "Hey, I'm an HTML web page!", so that the browser knows how to render it. Remember to close your HTML documents with the corresponding </html> tag to signify the end of the HTML document.

If you haven't already, it is time to open up Notepad, Notepad++, or Crimson Editor and have a new, blank document ready to go. Copy the following HTML code into your text editor.

HTML Element Code:
<html> 
</html>
Now save your file by selecting - Menu and then Save. Click on the Save as Type drop down box and select the option All Files. When you're asked to name your file, name it - index.html. Double-check that you did everything correctly and then press - Save. Now open your file in a new web browser so that you have the ability to refresh the page and see any new changes.

If you opened up your index.html document, you should be staring at your very first blank (white) web page!

html - <head> element
The <head> is usually the first element contained inside the <html> element. While it is also an element container that encapsulates other HTML elements, these elements are not directly displayed by a web browser. Instead they function behind the scenes, providing more descriptive information about the HTML document, like its page title and other meta data. Other elements used for scripting (JavaScript) and formatting (CSS) are also contained within the <head> element, and we will eventually introduce how to utilize those languages. For now, the head element will continue to lay empty except for the title element, which will be introduced next.

Here's a sample of the initial setup.

HTML Head Element Code:
<html>
  <head>
  </head>
</html>
If you've made the code changes and refreshed the browser page, you will notice that we still have nothing happening on the page. So far, all we've done is add a couple of necessary elements that describe the web page document to the web browser. Content -- the stuff you can see -- will come next!

html - <title> element
The <title> element adds a title to a web page. Web page titles are displayed at the top of any browser window or at the top of browser tabs. They are probably the first thing seen by web surfers as pages are loaded, and web pages you bookmark are saved using the web pages' titles.

A proper title makes a good first impression, and any page caught without a title is considered unprofessional, at best.

HTML Title Element Code:
<html>
  <head>
    <title>My Web Page!</title>
  </head>
</html>
Save the file and refresh the browser. You should see "My Web Page!" in the upper-left bar of your browser window.

Name your webpage as you please. Just keep in mind that the best titles are brief and descriptive.

html - <body> element
The element that encapsulates all the visual elements (paragraphs, pictures, tables, etc.) of a web page is the <body> element. We will be looking at each of these elements in greater detail as the tutorial progresses, but for now, it's only important to understand that the body element is one of the four critical web page elements, and it contains all of the page's viewable content.

HTML Body Element Code:
<html> 
  <head>
    <title>My Web Page!</title>
  </head>
  <body>
    <p>Once upon a time...</p>
  </body>
</html>
Go ahead and view your first complete web page.

HTML - elements reviewed
To recap quickly: we've laid out a set of four essential elements that are used to create a strong foundation and structure for your web page. The <html> element encapsulates all page content and elements, including two special elements: the <head> and <body> elements. The <head> element is a smaller container for elements that work behind the scenes of web pages, while the <body> element houses content elements such as web forms, text, images, and web video.

From here on out, the examples we provide will assume that you have a firm understanding of these key elements and know to place the majority of your HTML code inside of the <body> element.

HTML Progrmming


Introduction to HTML

HTML (HyperText Mark-Up Language) is what is known as a "mark-up language" whose role is to prepare written documents using formatting tags. The tags indicate how the document is presented and how it links to other documents.

HTML is also used for reading documents on the Internet from different computers, thanks to the HTTP protocol, which allows users to remotely access documents stored at a specific address on the network, called a URL.

The World Wide Web (WWW for short), or simply the Web, is the worldwide network formed by all the documents (called "web pages") which are connected to one another by hyperlinks.

Web pages are usually organized around a main page, which acts as a hub for browsing other pages with hyperlinks. This group of web pages joined by hyperlinks and centred around a main page is called a website.

The Web is a vast living archive composed of a myriad of web sites, giving people access to web pages that may contain formatted text, images, sounds, video, etc.

What is the Web?

The Web is composed of web pages stored on web servers, which are machines that are constantly connected to the Internet and which provide the pages that users request. Every web page, and more generally any online resource, such as images, video, music, and animation, is associated with a unique address called a URL.

The key element for viewing web pages is the browser, a software program which sends requests to web servers, then processes the resulting data and displays the information as intended, based on instructions in the HTML page.

The most commonly used broswers on the Internet include:

Mozilla Firefox,
Microsoft Internet Explorer,
Netscape Navigator,
Safari.
HTML is a standard

It is important to understand that HTML is a standard, composed of recommendations published by an international consortium: the World Wide Web Consortium (W3C).

The official specifications of HTML describe the language's "instructions" but not how to follow them (the way they are translated by computer programs), so that web pages can be viewed regardless of what the user's operating system or computer architecture may be.

Nevertheless, as detailed as these specifications are, there is still some room for interpretation on the browsers' part, which explains why the same page might be displayed differently from one web browser to another.

What's more, some software publishers add proprietary HTML instructions, which are not found in the W3C's specifications. For this reason, web pages containing such instructions may be displayed just fine in one browser, yet be completely or partially unreadable in others. This is why web pages should follow the W3C's recommendations so that as many people as possible can view them.

Versions of HTML

HTML was designed by Tim Berners-Lee, at the time a researcher at CERN, beginning in 1989. He officially announced the creation of the Web on Usenet in August 1991. However, it wasn't until 1993 that HTML was considered advanced enough to call it a language (HTML was then symbolically christened HTML 1.0). The web browser used back then was named NCSA Mosaic.

RFC 1866, dated November 1995, represented the first official version of HTML, called HTML 2.0.

After the brief appearance of HTML 3.0, which was never officially released, HTML 3.2 became the official standard on January 14, 1997. The most significant changes to HTML 3.2 were the standardization of tables, as well as many features relating to the presentation of web pages.

On December 18, 1997, HTML 4.0 was released. Version 4.0 of HTML was notable for standardizing style sheets and frames. HTML version 4.01, which came out on December 24, 1999, made several minor modifications to HTML 4.0.