Structure of HTML documents

0
874

This is a diagram of the structure of the HTML document: The tag is the basis of the HTML document

<html> is the first element in the document. It can be called root. <html> he tells the web browser that the document was created using HTML.

This is the minimum HTML document:

<html> … the body of the document … </html>

Header of the HTML document

Inside the <head> tag is a description of the document header. It should be only after the <html> tag (and nowhere else). This element is a general description of the document. There may be instructions to the browser and scripts place for scripts and descriptions of global properties (metadata) of the HTML document, or metadata. Do not place any text inside the <head>.

For example, here is the html code:

<html>
<head>
Header description
</head>

</html>

It is recommended to use start and end tags like <html>, <head>, <body>, although this is not necessary. However, these tags allow the WEB-browser to properly separate the header part from the semantic part of the document.

Inside the <head> tag are the following tags:

The <title> tag of the WEB page header can be located inside the <head> tag.

Many WEB-browsers display the contents of the <title> tag directly in the title of the window containing the document, as well as in the bookmark file, if it is supported by the web browser. The title of the <title> document is located inside the <head> tag, this was shown in the example above. The document title does not appear in the window when the document itself is displayed.

Meta data tag <meta>

This tag describes the global parameters (metadata) that describe the data in the document. When displaying the page, they can be used by the WEB-browser, and search engine robots (search engines), when indexing web resources and not only …

The <link> external link tag To link an HTML document to external resources, this tag is applied. Before processing the page, it must be loaded with WEB-browser.

Other html tags

The body of the HTML document is body

In the <body> tag, there is text and graphic (semantic) information of the HTML document. This is the part that is displayed for the visitor of the WEB-site. At this point in the HTML document, there are tags that format the text, display pictures and other information in the document.

Proceeding from the above, the structure of the HTML document, which was represented in the form of html code will look like this:

<html>

<head>
Description of the page title
</head>

<body>
Contents of the web page
</body>

</html>