Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 23 - CoreGPT(Podar)_Flipbook_C8
P. 23

    The ‘name’ is the property that you want to set.

                     The ‘value’ is what that 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.

                     For example           <HR WIDTH="50%">
                     The WIDTH is the attribute of the <HR> tag which specifies the width of the horizontal line in
                     pixels or percentage. By default, the width is 100%.

                           RULES FOR WRITING HTML CODES
                        Container tags should always be closed properly.

                        Values given to the attributes should be enclosed within the double quotes.
                        Tag name should not contain spaces.

                        There should be no spaces between < and > in a tag.
                        Tags must be nested correctly.

                           HTML DOCUMENT STRUCTURE

                     A HTML document is a text file containing markup tags. The markup tags tell the Web browser
                     how to display the web page. A HTML file is saved with .htm or .html extension.

                     Basic Structure of HTML Document is as follows:
                     <HTML>

                     <HEAD>
                     <TITLE>Title of the web page</TITLE>
                     </HEAD>
                     <BODY>
                     Content of the page
                     </BODY>
                     </HTML>
                     A HTML page is divided into two sections called Head and Body.

                        Head contains the information which is not to be shown on the web page.
                        Body contains the information which is to be shown on the web page.

                           CREATING AND VIEWING AN HTML DOCUMENT

                     Let us start with the designing of first web page by using the basic tags.

                     Step 1    Open the Text Editor and write the following HTML code:
                               <html>

                               <head>
                               <title> FIRST WEB PAGE </title>

                                                                                              Introduction to HTML       21

| 18 19 20 21 22 23 24 25 26 27 28 |