All Snippets
Top 100 Snippets

By Language

GBIC >> Source Code >> HTML >> Snippet

01 Overview

..HTML files are text files.

HTML files contain information to be displayed, along with special instructions on how
to display the information.

An HTML file is read by a browser such as Microsoft Explorer which displays the content
according to the instructions it finds.

The instructions are called "tags", which usually come in pairs. An example of a tag pair is:

< b > Hello </ b >

The < b > is the starting tag and the </ b > is the ending tag. This particular pair of tags tells
the browser to display the word 'Hello' in bold.
Each of the tab pairs start and end with the < a nd > symbols.

Another example is to display an image:
< img src = "mypicture.jpg" align =left >

This tag is an exception to the rule - it has no end tag.  In this example it displays the image
mypicture.jpg aligned to the left side of the page.

This tag also shows the concept of an attribute to which you can assign a value.  In this
case, the attribute is 'src' and the value assigned to it is

Usually, an HTML file is saved with an extension of .html or .htm. Doing so in Windows
enables you to double-click on the file name and have it opened
in the web brower.

Many people edit the files with the simplest of all text editors - Notepad - which is supplied
with Windows.  Specialty applications exists which provide
HTML-specific features, including the ability to FTP completed files to the server.