Add title attribute to anchor in HTML and CSS

Description

The following code shows how to add title attribute to anchor.

Example


<!--   w w w . j  a v a 2 s .  co m-->
<html>
<body>
<p><a href="http://www.java2s.com/"
title="tutorial website">HTML tutorial</a></p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Add title attribute to anchor in HTML and CSS