Page 79 - Plus_V2.2_C6_Flipbook
P. 79

Step 2:   Type the following code:


                  <!DOCTYPE HTML>
                  <HTML>
                  <HEAD>

                  <TITLE> Learning HTML </TITLE>
                  </HEAD>
                  <BODY>
                  Creating a Web page using HTML
                  </BODY>

                  </HTML>

                 Step 3:   Save your document by selecting File -> Save/ Save As option. In the Save / Save As dialog box,

                         type the file name as sample1.html and save the file in Desktop. (For easy access of the file).



















                                    File Menu-Save option                               Save As Dialog box



                      Viewing a Web Page

                 After creating and saving an HTML document, you need to open it into a web browser to view it.
                 To open an HTML document into web browser, perform the following steps:
                 Step 1:  Open the folder in which you have saved the HTML document.
                 Step 2:  Locate the file and double-click it. Web page opens in your default web browser window.

                 Output:












                                                       Viewing an HTML document






                                                                                             Introduction to HTML5  77
   74   75   76   77   78   79   80   81   82   83   84