Sunday, 29 January 2012

creat html


1.3    STEPS FOR CREATING A SIMPLE HTML PROGRAM


 



  1. Go to Start -> Programs->Accessories->Notepad.
  2. Begin with a document type tag and an <HTML> opening tag. Enter the following line in your doc.
    <HTML>
  3. Indicate that you are beginning the head element of document by issuing the <HEAD> opening tag.  If a <HEAD> element is included, it must appear within an <HTML> element. The following line should appear next in your document:
    <HEAD>
  4. The <TITLE> element is used to indicate the title of an HTML document.  <TITLE> tags are placed with in the head component of a document and the title is placed between the opening and closing <TITLE>  tags.  Add this <TITLE> element to your document.
    <TITLE>My First Page</TITLE>
  5. To end the head area issue a <HEAD> closing tag.

    </HEAD>

    Thus the <HEAD> element is nested within the <HTML> element.

  6. At this point the body of the document is developed.  A <BODY> opening tag indicates that this point has been reached.  Enter the following line.
    <BODY>
In this case, the body of document contains a simple text statement for now,  add the following statement in your file:

Hello World !

7.  A </BODY> closing tag   marks the end of <BODY>   element.  Similar to the HAED     element, the <BODY> element is also completely nested within the <HTML> element. To end the <BODY> element, issue the closing tag in your document. 
           </BODY>
8. Finally, terminate the <HTML> tag with </HTML> as shown below :




No comments:

Post a Comment