Page 51 - CA 165 ver 1.0 Class 10
P. 51

Here, <TITLE> is start tag and </TITLE> is end tag. "My First Webpage" represents content. This is an
                 example of title element.

                 Attribute

                 An  attribute  is a  property  that  provides some additional  information  about  a  tag.  It  enhances  the
                 functionality of a tag. It is always specified inside the opening tag. All attributes consist of two parts– a
                 name and a value.
                 The ‘name’ is the property that you want to set.
                 The ‘value’ is what you want for the respective property.
                 For example <BODY BGCOLOR="yellow">

                 The BGCOLOR attribute of the <BODY> tag is used to add a background colour to the body of the web page.

                   FUNDAMENTAL STRUCTURE OF HTML DOCUMENT
                 HTML document consists of text that comprises the contents of the document and the tags that define the
                 structure and appearance of the document. The basic structure of an HTML document can be classified
                 into different elements or sections.



                                                    <HTML>
                                                        <HEAD>

                                               HEAD Section          ........................    TITLE Section
                                                            <TITLE>

                                                            ........................
                                      HTML Section          ........................



                                                            </TITLE>
                                                        </HEAD>

                                                        <BODY>
                                               BODY Section         ........................
                                                           ........................



                                                           ........................

                                                        </BODY>

                                                        Footer
                                                    </HTML>

                 <HTML> Tag

                 HTML document begins with its header part in which <HTML> tag is used that identifies the document
                 as an HTML document.
                 The entire document is written inside <HTML>……</HTML> tags.  It marks the beginning and ending of
                 an HTML coded document. Syntax of the <HTML> tag is as follows:

                  <HTML> ... ... ... ... </HTML>




                                                                                         Introduction to HTML    49
   46   47   48   49   50   51   52   53   54   55   56