Loading...
Loading...
00:00:00

<head> Tag in HTML

The <head> element in HTML5 contains meta information about the document, such as the title of the page, any CSS styles that should be applied, and any meta descriptions or keywords for search engines.

In this Tag we can write title, description, keywords, charset,about author,date and some hidden informatio of webpage using '< meta>' tag. 

Here are some of the most commonly used elements within the <head> tag:

  1. <title>: The title of the page, which is displayed in the browser's tab and also used by search engines as a summary of the page's content.

  2. <meta>: The meta elements provide metadata about the document, such as a description of its content or keywords that can be used by search engines to index the page.

  3. <link>: The link element is used to link to external resources, such as CSS stylesheets, JavaScript files, and favicons.

  4. <script>: The script element is used to include JavaScript code in the page, either directly or by linking to an external file.

Overall, the <head> tag is an essential part of any HTML document, as it provides information that is used by both the browser and search engines to understand the content of the page.

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <script src="index.js"></script>
</head>