Page 69 - trackpad v5.1 class 6 flipbook
P. 69

Tick ( ) if you know this.
                          HTML 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 place a new tag inside another tag before closing the first
                 one. These tags follow the LIFO principle, which stands for Last In, First Out. This means the tag
                 that is opened last must 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 webpage 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 the
                          <TITLE>           <HEAD> 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 browser. It contains all other tags that define the content presentation
                         <BODY>
                                           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.






                                                                                            Learn HTML5 and CSS3  67
   64   65   66   67   68   69   70   71   72   73   74