I know <th>
, <a>
, <p>
, <h1>
…<h5>
can all use title attributes. Which other tags can use them?
I’m currently optimising a website for SEO purposes by adding title attributes with keywords associated with the website
I know <th>
, <a>
, <p>
, <h1>
…<h5>
can all use title attributes. Which other tags can use them?
I’m currently optimising a website for SEO purposes by adding title attributes with keywords associated with the website
2
Answers
The title attribute works with all HTML tags. It’s a global attribute. You can see the list of all HTML tags here.
http://www.w3schools.com/tags/ref_standardattributes.asp
The title attribute can be found in the global attributes section of the HTML 5 recommendation which says: