Home Tutorials HTML Tutorial Metadata and Head Elements
Metadata and Head Elements

Metadata and Head Elements


53. Metadata and Head Elements

The <head> section can include metadata such as <meta charset>, viewport settings, title, favicon links, and other resource hints. This section affects page behavior and interpretation rather than direct page content.

Syntax

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

Example

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Responsive Page</title>
</head>

Output

No direct body output is shown, but the page uses UTF-8 encoding and mobile-friendly viewport settings.
Example

🏋️ Test Yourself With Exercises

Take our quiz on Metadata and Head Elements to test your knowledge.

Browse Quizzes »