Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 100 - CodePilot V5.0 C6
P. 100

    There should not be any space within the tag. For example, < T A G> is incorrect.

                          All container tags require a closing tag with a forward slash followed by the tag name.
                          Tag names must be enclosed in angle brackets without spaces.

                          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.

                       98
                            CodePilot (V5.0)-VI

| 95 96 97 98 99 100 101 102 103 104 105 |