Page 97 - Trackpad_ipro 4.1_Class6
P. 97

There should be no spaces between < and > in a tag.

                    Tags must be nested correctly using the LIFO principle.



                                   If HTML is a canvas and you are an artist, how would you design web pages
                                   and layout to to express your creativity and style?




                     HTML5 DOCUMENT STRUCTURE

                 An HTML document is a text file containing markup tags. The markup tags tell the Web browser
                 how to display the web page. An HTML file is saved with .htm or .html extension.
                 Basic Structure of HTML Document is as follows:

                 <!DOCTYPE html>
                 <html>
                 <head>
                 <title>Title of the web page</title>
                 </head>

                 <body>
                 Content of the page
                 </body>
                 </html>
                 An HTML page is divided into two sections called Head and Body:
                     Head contains the information about the document, such as the title of the page, links to

                    stylesheets, and other data that is not directly visible to the user on the web page.
                     Body contains the information which is to be shown on the web page.

                     CREATING AND SAVING AN HTML DOCUMENT

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

                                               1  Open the Notepad                 2  Click on the
                                               and write the code.                 File menu.
















                                                                               3   Click on  Save option  to
                                                                              open the Save As dialog box.




                                                                                        HTML—An Introduction     95
   92   93   94   95   96   97   98   99   100   101   102