93 of 133 menu

The head tag

The head tag contains the service content of the page, which specifies the encoding of the document, includes CSS files on the page, includes JavaScript files on the page, and so on.

Most often, inside head there are tags title, meta, script, link, style.

Example

Let's see what the structure of a simple HTML page looks like:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>This is the title title</title> </head> <body> This is the main content of the page. </body> </html>

See also

  • tag doctype,
    which contains the page doctype
  • tag html,
    which is the main tag on the page
  • tag body,
    which contains the main content
  • tag title,
    which contains the page title
  • tag meta,
    which contains meta data
byenru