Is it good practice to have a link that just exists for its tooltip? Like this:
<a title="10% off all widgets in September!">$90.00</a>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need the tooltip, then
spanshould be a better choice, since it carries no semantic information. An anchor would usually indicate a link, so if clicking on that price won’t lead anywhere, then an anchor isn’t appropriate.Almost all HTML elements can carry the
titleattribute for accessibility reasons, but you shouldn’t depend on it for carrying important information since it is dependent on the user agent (ie. browser) on how best to display this information.