Page 69 - Trackpad_V2.1_Class6
P. 69

HTML5 includes some tags that don't require a closing tag but still function as containers. For
                 example, the <img> tag doesn't have a closing tag, yet it holds content like an image's source and
                 attributes.

                 EMPTY TAGS

                 These tags are self-contained. They have only an opening tag.
                 For example: <BR>.
                 The Line Break tag is an empty tag that does not require any corresponding closing tag.




                      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.
                 For example: <b><i>This is bold and italic</i></b>

                 In this example, the <i> tag is closed before the <b> tag, demonstrating the LIFO principle.



                           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
                         <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
                        <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.



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