Page 101 - Viva ICSE Computer Studies 6 : E-book
P. 101

3.  Click on the HTML fi le once you fi nd it in the list. The fi le will be displayed in the Chrome
                           window.



                                                                                  Step 3
                                             Step 3














                    Structure of an HTML Document

                    There is a specifi c structure that needs to be followed while writing a program in HTML.
                    The basic structure that should be followed is explained here.

                           <HTML>
                           <HEAD>                                                Learn More

                           <TITLE>  (title of the web page) </title>        •  Attributes are keywords that provide
                                                                              additional information about the HTML
                           </HEAD>
                                                                              tags. They are followed by “=” and enclosed
                           <BODY>                                             within double quotes (“”).
                                                                            •  Tags that are used to change the appearance
                           </BODY>
                                                                              of text are also known as physical markup.
                           </HTML>
                    The <HTML> tag marks the beginning of an HTML document. Its corresponding closing tag
                    </HTML> is placed at the end of the document. Everything is written within these tags. If
                    the commands are not enclosed in tags, then a web browser will assume the commands as
                    simple text. The <HEAD> is the fi rst element contained inside the <HTML> element. It does
                    not contain any text. The <TITLE> tag has to be given within the <HEAD> tags. It contains the
                    title of the document. The title should be short and of less than 64 characters. The <TITLE> tag
                    changes the text that appears on the top of your browser but not in the actual viewing pane.

                    The BODY tag contains the text which is actually displayed on the web page along with other
                    tags and attributes

                    HTML Tags


                    Each tag in HTML follows specifi c rules called syntax. These tags are not case sensitive. Tags are
                    also known as elements.

                    Types of HTML Tags/Elements

                    HTML elements can be categorised as: Container elements and Empty elements.



                                                                                                                    89
   96   97   98   99   100   101   102   103   104   105   106