codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML head and meta

HTML head and meta

Information about the page.

The head can hold title, meta, link, style and script. Meta tags set charset, viewport and description.

Example code

<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <meta name='description' content='Free tutorials'>
  <title>Head demo</title>
</head>
<body><p>Head contents are invisible.</p></body>'

Run this code in the online editor

← File pathsHTML layout →