Page 75 - Chinmaya_C6_flipbook
P. 75

Tick ( ) if you know this.
                          HTML or Hypertext Markup Language is the primary building block for creating a webpage.


                         Tags that have both opening and closing tags are known as container tags.




                 NESTING OF TAGS
                 Nesting of tags means that you can start a new tag before closing the previous tag. These tags are
                 nested according to the Last In First Out (LIFO) principle. It means the tag that has been opened
                 the most needs to be closed first.




                            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 web page and can be viewed using a web
                                            browser.

                                           The <HEAD> tag represents the header area of the document. It
                         <HEAD>            contains 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
                         <TITLE>            the <HEAD> tag. The title appears on the title bar of the browser window.
                                            If you do not want to give title to your web page, you can skip it.


                                           The <BODY> tag defines that section of the HTML document which is
                                           visible on the web browser. It contains all other tags that define the
                         <BODY>
                                           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 name.



                                                                                            Learn HTML5 and CSS3  73
   70   71   72   73   74   75   76   77   78   79   80