HTML title attribute

title attribute specifies a title for every visual HTML element. It gives advisory information about the element.

Example

<h1 title="title test on h1">Test</h1>
 <p title="you can see here the title">The title attribute can be written all html elements</p>	
Try </>

title attribute values

The value of this attribute is plain text.

Related Tags

The tags which support this attribute are as follows.

<abbr> tag

The title attribute represents the expanded form of the term in the abbr element.

Example

<p><abbr title="hyper text markup language">HTML</abbr> is used to make the basic structure of page.</p>
Try</>

<dfn> tag

The title attribute represents the expanded or short form of the term in the dfn element.

Example

<p><dfn title="hyper text markup language" id="h">HTML</dfn> is the abbreviation of hyper text markup language.</p>

<p><a href="#h">HTML</a> uses the markup to form the basic structure of a page.</p>


Try</>

The link references the term to its definition.

<input> tag

input element represents an input field to enter the data.

Example

<input type="password" title="write password of atleast 8 characters">

Try</>

The title attribute is applicable for all the HTML elements.



Was this article helpful?

 

Email:

Message:

Get the newsletter