Hope I can post this.
I understand the purpose of the title and alt attributes, but I just don’t understand how to use them better or if I can use the same / alt header more than once.
For example, a site about dogs:
From my understanding, all img tags need an alt tag:
<img src="Husky.png" alt="Husky" /> <img src="Rottweiler.png" alt="Rottweiler" />
Is it good to use the same alt tag for multiple images on the same issue
<img src="Husky2.png" alt="Husky" /> <img src="Husky3.png" alt="Husky" /> <img src="Husky4.png" alt="Husky" />
Is it good to use the title / alt tag in each tag? How about using the same tag more than a few times?
Example:
<ol title="This Dog"> <li title="This Dog"> Dogs </li> <li title="This Dog"> Dogs </li> <li title="This Dog"> Dogs </li> <li title="This Dog"> Dogs </li> <li title="This Dog"> Dogs </li> </ol> <div id="body"> <p title="This Dog"> </p> <p title="This Dog"> </p> <p title="This Dog"> </p> <p title="This Dog"> </p> </div>
I understand that the title tag acts like a hint / hover over the type of information in new browsers, and the alt tags use the same thing in older browsers. They also serve as a method for search engines to recognize your site.
I hope I have a point in my questions.
source share