HTML title Tag

  • HTML <title> tag is used to represents title to an HTML document that display in a browser's title bar.

  • Only one <title> element allowable per document and it's required to specified within <head> element.

Example

<!DOCTYPE html>
<html>
<head>
  <title>HTML title tag</title>
</head>
<body>
  <p>Paragraph text...</p>
</body>
</html>

Run it...   »

<title> Tag Attributes

HTML <title> tag does not support any specific attributes.

Global Attributes

HTML <title> tag support following global attributes.

Attributes Value Description
id unique_name Declared unique id for an element.
class class_name Declared one or more classnames for an element.
style styles CSS inline styles specify an element.
title title Specify extra details of element contain, this will display as a "tooltip" for an elements.

Browser Compatibility

  • Google Chrome
    Yes
  • Mozilla Firefox
    Yes
  • Microsoft Edge
    Yes
  • Opera
    Yes
  • Safari
    Yes