Lesson 1.5. Global structure of HTML pages

Global HTML page architecture

An HTML page contains a lot of hidden information. We finds content that is not displayed directly in the browser, but which are nevertheless of primary importance. This information is structured inside the page and separated by tags according to the following architecture:

<!doctype html>
<html lang="en">
        <meta charset="utf-8">
        <title>Page title</title>
        <meta name="description" content="Short description of the page" />
        <!-- Displayed page content -->


The tag <! Doctype html> is the typ e of doc ument. Here, of course, this is a HTML document. This tag allows compatibility between HTML and XML which is another more general markup file format.


The <html> tag marks the beginning of the HTML code. It is generally composed of two sections:

It is recommended to add the attribute `lang =" xx "` in the tag `<html>` to specify the language of the page.


The header of the page contains metadata, this information is not displayed in the browser, but is necessary for the browser to correctly interpret the content. This section can also contain information that search engines will analyze for page indexing. For search engine optimization, it is a good practice to include at least the following two tags:

This information may seem unecessary, since it does not appear directly on the page. They are however very important since they are used, among other things, for referencing pages in search engines.

See also

Last update : 03/10/2022