HTML Head Tag

Head Tag in HTML

The head tag contains the metadata (data about the data). This is present after the HTML tag starts and before the body tag starts.

Well, metadata is something that is not important for the user. Like, such as the encoding format, viewport details, etc.

This is also one of the essential tags in the document which will be seen in every HTML code out there.

Here is the example code(actually the starter template only) which shows the head tag.

<!DOCTYPE html>
<html lang=”en”>
    <meta charset=”UTF-8″>
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <title>First webpage</title>