Page 100 - iPro_trackGPT_V5_Class6
P. 100

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
                          write the HTML
                          code.















                    98     TrackGPT iPRO (V5.0)-VI
   95   96   97   98   99   100   101   102   103   104   105