HTML Introduction

An introductory discussion about HTML.

What is HTML?

HTML (HyperText Markup Language) is the web coding language designed for the creation of web pages with hypertext and other information to be displayed in a web browser. HTML is used to structure the information on the page — denoting certain text as headings, paragraphs, lists, etc — and format the appearance of the information (although CSS is a better choice to format the appearance of elements).

HTML Tags

HTML files are made up of different elements which are defined using HTML tags. The tags define the elements for your browser. Elements can contain text, pictures, or other elements. HTML tags consist of an opening tag, which is a left angle bracket (<), then the tag name, then comes the closing tag, which is a right angle bracket preseded by a slash (/>). Tags are usually paired (e.g., <head> and </head>) so only the elements in between the tags is marked up.

HTML tags are not case sensitive, so <b> means the same as <B> - although lower case tags are recommended so get in the habit of doing them in lower case. Not all tags are supported by all browsers. If a browser does not support a particular tag then it will simply ignore it but any text placed between the tags will still be displayed.

Attributes

Some HTML tags may contain attributes. Attributes provide additional markup to the elements inside the tags. For example you may have a <table> tag indicating you want to create a table but you may add a border attribute to the table tag indicating you want to format the table in a particular way. So <table> becomes <table border="1">. Attributes always come in name/value pairs (i.e. name="value") and attributes are always added to the start tag. Attribute values should always be enclosed in quotes - either double style quotes or single style.

Random

To view the source code of a web page go to "View" on the browser menu and select "Source". You should probably set your default HTML editor to notepad. To do this go to Tools/Internet Options on the browser and then click on the Programs tab and select Notepad for the HTML editor.


 
Bookmark this page:
   
 
Shared Hosts
Lunarpages.com Web Hosting

Domain Registrars
PPC Networks
Logos
Affiliate Networks
Resources