What is a <title> tag?

Experience Level: Junior
Tags: HTML

Answer

The <title> tag defines the title of the page.

  • The text of the tag is displayed in the browser tab.
  • The text of the tag is usually displayed in the top part of the browser window
  • The text of the tag is displayed in search engine results. Only the first 50-60 characters are usually displayed, so put the most important information at the beginning.
  • The <title> tag should be present on each web page.
  • The tag is very important for search engine optimization (SEO) and the text contained in this tag affects SEO ranking and the position of your web page in search results.
Example
<html>
<head>
	<title>This text will be displayed in the browser tab.</title>
</head>
<body>
...some page content...
</body>
Related HTML job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
HTML for beginners
HTML for beginners

Are you learning HTML ? Try our test we designed to help you progress faster.

Test yourself