1.3 STEPS FOR CREATING A SIMPLE HTML PROGRAM

- Go to Start -> Programs->Accessories->Notepad.
- Begin with a document type tag and an <HTML>
opening tag. Enter the following line in your doc.
<HTML> - 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> - 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> - To end
the head area issue a <HEAD> closing tag.
</HEAD>
Thus the <HEAD> element is nested within the <HTML> element.
- 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 !
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