Press "Enter" to skip to content

HTML Head Tag

HTML Head Tag

The head tag in HTML is used to contain important information about a webpage. This includes metadata, title, links to stylesheets, and scripts. It is located before the body tag and is invisible on the page. In this article, we will go over each element that can be included in the head tag.

Metadata is used to describe the web page, including the author, description, and keywords. The author tag includes the name of the person or organization that created the content. The description tag provides a summary of the page’s content, which is used by search engines. The keywords tag lists relevant keywords that help search engines categorize the content.

The title tag is used to specify the title of the webpage that is displayed in the browser’s title bar. This is an important element for SEO, as search engines give significant weight to the page title.

The link tag is used to link the HTML document to an external resource, such as a stylesheet or a script. This helps to separate the presentation and functionality of a webpage from its content, making it easier to manage and update.

The script tag is used to add JavaScript code to the webpage, which allows for interactivity and dynamic content. This can include everything from form validation to interactive games.

Overall, the head tag is an essential element of HTML that provides valuable information for both users and search engines. By including metadata, a title, links to stylesheets and scripts, web developers can create dynamic, engaging webpages that are optimized for search engine ranking.

<TITLE> tag
< META> tag
< SCRIPT>tag
< STYLE> tag

The Head tags do not directly affect the look of the web page when it is displayed .

Example for HTML HEAD TAG


<head> <titel>Welcome</title></Head>