Page 93 - iPrime_V2.2_class6
P. 93

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.
                 Step 1  Open the Notepad and write the HTML code.
                 Step 2  Click on File menu.

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

















                              HTML code in Notepad                          File menu – Save option


                                                                                         HTML—An Introduction      91
   88   89   90   91   92   93   94   95   96   97   98