Page 92 - iPlus_Ver_2.0_class_6
P. 92

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.
                  The <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 under:

                    <BODY BGCOLOR="red">

                  •  TEXT: This attribute defines the colour of the text of your web page. It can be used as under:
                    <BODY TEXT="blue">
                  •  BACKGROUND: This inserts the 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">
                  The Heading 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 can define up to 6 levels of headings from

                  h1 to h6. The h1 is the first level of heading and the h6 is the last level of heading/sub-heading.
                  Heading tags have an ALIGN attribute.



                    90
                         iPlus (Ver. 2.0)-VI
   87   88   89   90   91   92   93   94   95   96   97