STRUCTURE OF HTML DOCUMENT:
HTML document are structured into two parts:
- HEAD
- BODY
- HEAD: Head contain information about the document that is not displayed with the document such as TITLE.
- BODY: contains the text of the body that is material to be displayed with the document.
<HTML> <HEAD> <TITLE> ------------- -------------- </TITLE> </HEAD> <BODY> ----------------- ----------------- ---------------- </BODY> </HTML> |
NOTE: Elements allowed inside the HEAD such as TITLE, are not allowed inside the BODY, and vice versa.
EXTENSION OF HTML DOCUMENTS:
Extension: is the part after the dot in the filename.
HTML Files are indentified by names such as abc.html where .html extension indicates an HTML document. Four letter extensions are common. Generally the extension is truncated(reduced) to three letters that is becomes .html or .htm.
CREATING A HTML PROGRAM:
To creat an HTML document follow these steps:
- Open Notepad by clicking on Start>Programs>Accessories>Notepad.
- The Notepad Window will appear. Type the HTML code in the Notepad.
- Click on File>Save menu option. The save as dialog box will appear. Select the folder to save the file.Give the name in the file name text box with extensions .html or .htm.
- Click on the Save button.
VIEWING A HTML PROGRAM:
To view an HTML File, we need only the web browser. To veiw the web page follow these steps:
- Click on Start>Programs menu and choose Internet Explorer option. The Internet Explorer Window will appear.
- Click on File>open menu option. The open dialog box will appear. Click on Browse button and diaglog box will appear.
- Choose the path where you have stored the HTML document and after selecting your file. Click on Open button and Click Ok on Open dialog box.
- Your web page will be displayed on the Web Browser.
NOTE:
ALTERNATIVE WAY OF VIEWING A HTML PROGRAM:
Choose the path where you have stored the HTML document and after selecting you file, double click on your HTML document. Your web page will be displayed on the Web Browser.
0 Response to "How To Create a Web Page Using HTML Language"
Post a Comment