Structure of HTML document

     The basic structure of the HTML document is divided into two sections namely, the head

and the body. The browser enters the first section after executing the start tag of HTML

(telling the browser to begin interpreting the HTML commands) and start tag of HEAD.

The first section helps in changing the heading on the title bar of the HTML document

(the webpage). The starting of the heading is shown after the start tag of TITLE and the

end is shown by </TITLE>. The end tag of HEAD i.e. </HEAD> tells the browser that

the end of first section has come.

    The second section begins with the start tag of BODY. The data on the webpage is displayed

through the tags used in this section. The end tag of BODY i.e. </BODY> tells the browser

that no more data is to be inserted on the webpage and the end of the web document

has come. After the completion of this section, the slash HTML or the end tag of HTML

tells the browser to stop looking for HTML commands. This implies that any tag used

after the end tag of HTML will not be interpreted by the browser and so no action will

be performed.


<HTML>

<HEAD>

<TITLE> The Structure of HTML Document </TITLE>

</HEAD>

<BODY>

The Body of the HTML Document

</BODY>

</HTML>

Saving the HTML document

When you have finished writing the HTML code in the text editor, click on File menu and

select Save option. This opens a window, which asks you to save the file in a folder and give a name and an extension to the file. The extension in this file will be .html or .htm.

(e.g. basic.htm or first HTMLDocument.html). This will turn the file into a webpage.



No comments:

Post a Comment

Overview of HTML

                                          Overview of HTML HTML is the standard markup language for creating Web pages. What is HTML? HTML s...