Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 82 - logicode 2609 C6
P. 82

    When nesting, the inner tag should be closed before closing the outer tag.

                         An attribute should be present in the opening tag.

                                STRUCTURE OF AN HTML5 DOCUMENT

                      The basic structure of an HTML document is as follows:

                      <!DOCTYPE HTML>
                      <HTML>

                      <HEAD>

                      <TITLE>Title of the web page</TITLE>                     Head Section
                      </HEAD>

                      <BODY>

                      Content of the Web page               Body Section

                      </BODY>
                      </HTML>

                      THE <!DOCTYPE HTML> TAG
                      All HTML5 documents start with <!DOCTYPE HTML>, telling the browser to interpret the document
                      as HTML5.

                      THE <HTML> TAG

                      The <HTML> tag is the root of an HTML document. The <HTML> tag is the container tag for all other
                      HTML elements, except for the <!DOCTYPE HTML> declaration.

                      THE <HEAD> TAG

                      The <HEAD> tag contains metadata about the web page. It includes tags that provide information
                      about the web page but are not displayed directly on the page itself. Tags that can be placed
                      inside the <HEAD> tag include <TITLE>, <STYLE>, <SCRIPT> and <META>.

                      THE <TITLE> TAG
                      The <TITLE> tag is a container tag. It defines the title of the document. It can only contain text and
                      it is displayed on the web browser’s title bar or the page’s tab.

                      THE <BODY> TAG

                      The <BODY> tag is a container tag. It defines the section of the HTML document that is visible in
                      the web browser. It contains all other tags that define the content and presentation elements,
                      such as images, text, lists, tables and links for navigating between web pages.

                       80   Premium Edition-VI

| 77 78 79 80 81 82 83 84 85 86 87 |