Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 14 - 2619_PlusGPT V2.1_C-7
P. 14

    BASIC HTML TAGS

                      HTML provides various tags such as <HTML>, <HEAD>, <TITLE>, <BODY>, and many more. Let's discuss
                      these tags in detail.

                           <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.

                           <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. The <HEAD> is a container tag

                      used in pair as <HEAD> and </HEAD>. Every web page coding must have its header tag.

                           <TITLE> Tag

                      The <TITLE> tag tells the web browser that the text contained between <TITLE> and </TITLE> 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.

                           <BODY> Tag

                      The <BODY> tag tells the web browser that the text contained between <BODY> and </BODY> tags is
                      to be shown on the web page. It is a container tag. The <BODY> tag has the following attributes:

                         BGCOLOR: This attribute defines a colour to the background of your web page. It can be used as:
                            <body bgcolor="red">

                         TEXT: This attribute defines a colour to the text of your web page. It can be used as:

                            <BODY TEXT="blue">
                         BACKGROUND: This inserts an image as the background of the web page.

                            <BODY BACKGROUND="lily.jpg">
                      Different attributes can be used simultaneously like this:

                            <BODY BGCOLOR="red" TEXT="white">

                           <Hn> Tag
                      Every chapter in a book has various headings and sub-headings. These are known as levels of headings.

                      The heading tags are used to give a similar effect to your web page. These are container tags with a
                      start tag and an end tag. HTML has six levels of headings such as <H1>, <H2>, <H3>, <H4>, <H5> and
                      <H6>. The H1 is the first level of heading and the H6 is the last level of heading/sub-heading.

                      12    Premium Edition-VII

| 9 10 11 12 13 14 15 16 17 18 19 |