in an href in html, whats the difference between using
<a href="http://www.somesite.com/" name="The Name">
and
<a href="http://www.somesite.com/" title="The Name">
Is there any advantage to using one over the other?
Thanks
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.
Look it up in the spec, or better yet a resource that condenses the spec a bit. (And, then the spec if that isn’t enough.)
http://www.w3schools.com/tags/tag_a.asp
http://www.w3schools.com/tags/att_a_name.asp
So, the name of the anchor is used for links like
exampledomain.com/index.php#some_section, which would bring that anchor into focus on the page.Many modern browsers will display the title attribute in a tooltip when hovering over the link. It’s likely also useful for screen readers and such.