Open In App
Related Articles

HTML title Attribute

Improve Article
Save Article
Like Article

The title attribute is used to specify extra information about the element. When the mouse moves over the element then it shows the information. 

Supported Tags: It supports all HTML elements. 


<element title = "text">

Attribute Value: This attribute contains single value text which is used as the tooltip text for an element. This title is associated with all HTML elements. 

Example: This example shows the use of the title attribute.


<!DOCTYPE html>
    <title>title attribute</title>
        body {
            text-align: center;
        h1 {
            color: green;
    <h2>title attribute</h2>
    <p title="GeeksforGeeks: A computer science
              portal for geeks">



Supported Browsers: The browser supported by title attribute are listed below: 

  • Chrome
  • Edge 12
  • Firefox
  • Opera
  • Safari
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 10 May, 2023
Like Article
Save Article
Similar Reads
Complete Tutorials