Page 95 - iPrime_V2.2_class6
P. 95

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 (Google Chrome, Microsoft Edge, Mozilla
                 Firefox etc.). Every web page coding must start with the <html> tag and end with the </html> tag.

                 The <Head> Tag

                 The <head> tag defines the header area of your web page. The information inside the <head>
                 tag is used by the browser but is not displayed 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 is not 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 the file name and its path as the title of your web page.
                 The <Body> Tag


                 The  <body>  tag  specifies  the  main  content  of  the  web  page.  The  text  and  other  elements
                 contained between <body> and </body> tags are displayed on the web page It is a container
                 tag.
                 The <Hn> Tag

                 Every chapter in a book has various headings and sub-headings. Here, in <Hn> tag n denotes
                 the levels of headings. The heading tags are used to give 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. H1 is the first level of heading and H6 is the last level of heading/sub-heading.
                 Let us create a web page using heading tags.


























                                                                                         HTML—An Introduction      93
   90   91   92   93   94   95   96   97   98   99   100