Page 58 - CA_165_V2.0_Flipbook
P. 58

<HEAD> Tag

                  The next section begins with the <HEAD> tag and ends with the </HEAD> tag. Information specific to
                  the head section is written between these two tags.

                  The head of an HTML document provides metadata and other information about the document. This
                  section can include the <TITLE>, <SCRIPT>,  <META>, and <LINK> tags. The <HEAD> tag is  always
                  written inside the <HTML> tag. Content within the head section is generally not displayed directly on the
                  screen, except for the title in the browser's tab. Syntax of the <HEAD> tag is as follows:

                    <HTML>
                    <HEAD>
                    .............

                    </HEAD>
                    </HTML>
                                                             <HEAD> Tag

                        Type           Function          Attributes             Contains              Used Inside

                   Container tag     Contains         None specific, but   Tags like <TITLE>,     Always placed
                                     metadata         can include LANG    <META>, <LINK>,         within the <HTML>
                                     and links        and DIR.            <SCRIPT>.               tag.
                                     to external
                                     resources for
                                     the web page.
                  <TITLE> Tag

                  This is defined within the <HEAD> tag. It displays the title of the web page on the Title bar. Its output
                  does not appear in the body of the web page. Title tag is not mandatory to use in an HTML document.
                  If we don't include the <TITLE> tag in an HTML web page or leave it empty, the Microsoft Edge browser
                  will display the file name along with its extension as the title in the browser tab. Syntax of the <TITLE>
                  tag is as follows:

                    <HTML>
                    <HEAD>
                    <TITLE>          The text typed here is displayed on the title bar of the browser.

                    </TITLE>
                    </HEAD>
                    </HTML>

                                                              <TITLE> Tag

                        Type           Function          Attributes             Contains              Used Inside
                   Container tag     Sets the title of  None.             Text (the title of the   Always placed
                                     the web page                         page).                  within the <HEAD>
                                     displayed in                                                 tag.
                                     the browser
                                     tab.



                    56   Touchpad Computer Applications-X
   53   54   55   56   57   58   59   60   61   62   63