Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 48 - ClickGPT V4.0 C-5
P. 48

    RULES FOR WRITING HTML5 CODES

                  There are certain rules for writing HTML5 codes. Let us learn more about them:
                      Container tags should always be closed properly.

                      Values given to the attributes should be enclosed within double quotes.
                      The tag name should not contain spaces.
                      There should be no spaces between < and > in a tag.

                      Tags must be nested correctly using the LIFO principle.

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

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

                     46     Premium Edition-V

| 43 44 45 46 47 48 49 50 51 52 53 |