Skip to main content

Command Palette

Search for a command to run...

Head tag

Published
1 min readView as Markdown
Head tag

In HTML head tag acts as a container for metadata (data about data) and is placed between the element and the element. Metadata contains information such as the title of the page, the author, and any other relevant information that is not the main content of the page.

The head element can contain several elements such as a title tag, script tag, meta tag, and link tag.

Here is an example of how the head tag is placed in the structure of an html document

<html> 
<head> 
<title> 
the webpage
</title> 
</head> 
<body> 
<p> the main content goes here </p> 
</body> 
</html>

Interview-HTML

Part 15 of 18

In this series I will try to answer questions of HTML interviews in most simplest fashion. This will give user the chance of understanding the interview question of HTML in a conceptual manner.

Up next

link tag

The <link> element in HTML is used to link external resources, such as stylesheets, to an HTML document. It is placed in the head of the document and does not require a closing tag. Here is an example of how to use the <link> element to link a styles...

More from this blog