Skip to main content

Command Palette

Search for a command to run...

Title tag

Published
•1 min read•View as Markdown
Title tag

The title tag is used to specify the title of the page and it should be related to the web page. This is placed in the head of the document and it must have a closing tag. The text that is placed between the title tag is displayed in the title of the web browser.

Here is an example of how to use the title tag in an HTML document

<!Doctype html> 
<html> 
<head> 
<title> 
this is where we mention the title of the web page
</title>
</head>
<body> 
<p> this is where the main content </p>
</body> 
</html>

Interview-HTML

Part 17 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

Horizontal tag

In the html document, the horizontal tag element represents a horizontal line that is used to visually separate the content. It is an empty element which also means it does not have any content and there is no requirement for any closing tag. Here is...