Monday, October 10, 2011

Creating HTML Document:


Creating an HTML document is easy. To begin HTML coding we need to things.
i)=A text editor
ii)=A web browser
Here notepad is the most basic of simple-text editors.

The basic format of HTML
<html>
 
<head>
 
<title>
 
</title>
 
</head>
 
<body>
 
</body>
 
</html>
There are four parts of HTML
a)<html>
   </html>
b) <head>
   </head>
c) <title>
    </title>
d) <body>
    </body>
 
The full procedure to create a web page using HTML:
*        Open Notepad or another text editor.
*       At the top of the page type <html>.
*      On the next line, indent five spaces and now add the opening header tag: <head>.
*      On the next line, indent ten spaces and type <title> </title>.
*       Go to the next line, indent five spaces from the margin and insert the closing header tag: </head>.
*         Five spaces in from the margin on the next line, type<body>.
*    Now drop down another line and type the closing tag right below its mate: </body>.
*       Finally, go to the next line and type </html>.
*        In the File menu, choose Save As.
*     In the Save as Type option box, choose All Files.
*        Name the file template.htm.
*       Click Save.
Example: copy and paste the below code to see the example of an HTML page
<html>
<head>
<title>This is title</title>
</head>
<body>
<h1>Heading=INFOJANALA.BLOGSPOT.COM</h1>
<p>Description start here........</p>
</body>
</html>
Now our first html page is created by notepad which can open with a browser.
Here <html>, <head>,...<p>, <h1> etc. are called HTML tags. HTML tags are building blocks of an HTML document.We will learn all HTML tags in the next lesson.

No comments:

Post a Comment