Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 12 - 2615_KEC
P. 12

    BASIC HTML TAGS

                      Let’s learn the basic tags of HTML.

                              Tags                                       Description

                                              The <HTML> tag tells the web browser that the text contained between <HTML>
                             <HTML>
                                              and </HTML> is a webpage and can be viewed using a web browser.

                                              The <HEAD> tag represents the header area of the document. It contains
                             <HEAD>           information about the document title, scripts and style definitions used
                                              in the document.

                                              The <TITLE> tag represents the title of the document and is used inside the <HEAD>
                              <TITLE>         tag. It appears on the title bar of the browser window. If you do not want to give
                                              title to your webpage, you can skip it.

                                              The <BODY> tag defines the part of the HTML document that is visible in the web
                             <BODY>           browser. It contains all other tags that define the content presentation elements
                                              such as images, lists, tables, text and links to move between the webpages.

                                ATTRIBUTES

                      An attribute is used to define some extra features or properties of an HTML tag. All attributes
                      have two parts: name and value. The ‘name’ is the property that you want to set. The ‘value’ is
                      what you want for the respective property.

                      Syntax to specify the attribute of any tag:
                      <tag_name attribute_name = “value”>

                                HTML COMMENTS

                      Comments  are used  to  add  notes  or explanations within an HTML  document.  They help the
                      programmer  by  making it  easier  to  understand  and edit  the  document  later. You  can add
                      comments using a special tag, which looks like this: <!-- comment goes here -->.
                      For example, <!-- This is a comment in HTML -->

                                RULES FOR WRITING HTML CODES

                      There are some rules for writing HTML codes:
                         Container tags should always be closed properly.

                       10   Premium Edition-VII

| 7 8 9 10 11 12 13 14 15 16 17 |