Page 91 - TP_iPlus_V2.1_Class6
P. 91

Suppose,  writing  HTML5  code  was  like  casting  a  spell.  What  kind  of  digital
                                     spells would you create, and what effects would they have on your web page?




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

                  i +  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 and
                       write the HTML code.               2  Click on File menu.



















                                                     3  Click on Save, to open Save As dialog box.









                                                                                                                  89
                                                                                        HTML—An Introduction
   86   87   88   89   90   91   92   93   94   95   96