Friday, April 22, 2011

First HTML Program

At first write the following program on any text editor (like Notepad).



















Save it on your computer by the name ‘Program1_1.html’. The .html is mandatory.  The file extension will be .html.

Then open the file by any web browser, such as Internet Explorer




















 Where

1.       The first tag of the program is <html> tag. Browser search for the extension .html to open any document. After that the browser searches for the <html> tag on the program. If it finds the <html> tag then it will be complete the other part of the program. In the following program the </html> is the closing of the program. So the browser will be complete the task that are within the <html>…. </html> tags.

2.       The next tag of the program is <head> tag. This tag is used to keep the data (i.e. title of the document) related to the document on it. This data will be shown on the head of the web page. </head> is the closing of the head.

3.       The next is the <title> tag. This tag is used to choose a name for the web page. The title is shown on the title bar of the web page. The </title> is the closing of the title. This tag is within the <head>…</head> tag. So it can be said that the title tag is the part of the head tag.

4.       The next the <body> tag is the main part of the program. All the written document, image, video, audio etc. are keep within the <body>…</body> tag. In the program ‘Program1_1.html’ the sentence ‘This is my first HTML Program’ is situated on the <body>…</body> tag. The </body> is the closing tag of the body.

No comments:

Post a Comment