Introduction to HTML

Introduction to HTML


HTML (Hypertext Markup Language) is used to create document on the World Wide Web. It is simply a collection of certain key words called ‘Tags’ that are helpful in writing the document to be displayed using a browser on Internet. HTML was developed by Tim Berners-Lee in 1992.

CREATING, SAVING AND VIEWING A HTML DOCUMENT

Creating a HTML document

The essential tags that are required to create a HTML document are:

 <HTML>.............</HTML>

 <HEAD>.............</HEAD>

 <BODY>.............</BODY>


HTML Tags

Tags are instructions that are embedded directly into the text of document.Html Tags are signals to a browser that should do something other than just through text upon the screen.All HTML tags begin with an open angle bracket (<) and end with close angle bracket (>).

HTML tags can be two types:-

  • Paired Tag (Container)

  • Singular Tags (Empty)

Container Tags: Tags which have both the opening and closing i.e. <TAG> and </TAG> are called container tags.They hold the text and other HTML tags in between the tags. The <HTML>, <HEAD>, <TITLE> and <BODY> tags are all container tags.

Example:

<TAG> this is a container tag. It holds both the text and HTML tag </TAG>

Empty Tags: Tags, which have only opening and no ending,are called empty tags. The <HR>, which is used to draw horizontal, rule across the width of the document, and line break <BR> tags are empty tags.


Html : Introduction to HTML Program List