Page 76 - Plus V4 with Adobe class 6
P. 76

HTML5 DOCUMENT STRUCTURE


        An HTML document is a text file containing markup tags. The markup tags tell the Web browser how to
        display the web page. A HTML file is saved with .htm or .html extension.

        Basic Structure of Html Document is as follows:

        <!DOCTYPE html>
        <html>

        <head>
        <title>Title of the web page</title>

        </head>
        <body>
        Content of the page

        </body>
        </html>
        A HTML page is divided into two sections called Head and Body.
            Head contains the information which is not to be shown on the web page.

            Body contains the information which is to be shown on the web page.
        HTML provides various tags such as <!DOCTYPE html>, <HTML>, <HEAD>, <TITLE>, <BODY>, and many
        more. Let us discuss some tags in detail.


        The <!DOCTYPE html> Tag
        The  <!DOCTYPE  html>  is  not  an  element  in  HTML.  It  is  a  document  type  declaration  that  tells  the
        browser about the version of HTML. It is not case sensitive which means you can write it into uppercase
        or lowercase.


        The <HTML> Tag

        The <HTML> tag tells the web browser that the text contained between <html> and </html> is a web
        page and can be viewed using a web browser. Every web page coding must starts with the <html> tag
        and ends with the </html> tag.

        The <HEAD> Tag

        The <Head> tag defines header area of your web page. The information given in <Head> tag tells the
        computer that this information is not to be shown on the web page. It is a container tag used in pair as
        <head> and </head>. Every web page coding must have its header tag.

        The <TITLE> Tag

        The <Title> tag tells the web browser that text contained between <title> and </title> is the text that
        does not form part of the web page. It will be shown on the Title Bar of your web browser. The use of
        title tag is not mandatory. If you do not want to give title to your web page, you can skip it. Your web
        browser will show file name and its path as title of your web page.



            74  Plus (Ver. 4.0)-VI
   71   72   73   74   75   76   77   78   79   80   81