Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 13 - 2615_KEC
P. 13

    Values given to the attributes should be enclosed within the double-quotes.
                       Tag name should not contain spaces.

                       There should be no space between < and > in a tag.
                       Tags must be nested correctly.

                               STRUCTURE OF AN HTML DOCUMENT

                     The structure of an HTML document is:

                      <!DOCTYPE HTML>

                      <HTML>
                        <HEAD>
                          <TITLE> The title of the webpage goes here. </TITLE>
                        </HEAD>

                        <BODY>

                           All  the  visible  content  of  the  webpage  is  documented  here,
                             containing  bulk  of  information.  The section  contains  various
                             HTML tags defining the structure and layout of the page content.
                        </BODY>
                      </HTML>

                     The  DOCTYPE  declaration  at the beginning of page specifies  that  the document  is written in
                     HTML5. In HTML5, the DOCTYPE declaration is required.

                               CREATING AND SAVING AN HTML DOCUMENT

                     To create an HTML document, open a text editor (here, we have used Notepad) and type the code.

                                                                                                Learn HTML5 and CSS3  11

| 8 9 10 11 12 13 14 15 16 17 18 |