[wp-testers] Title= versus Alt=

Mae Paulino mae at lastleaf.org
Fri Mar 21 06:30:11 GMT 2008


First, it's alt attribute and title attribute :P

The alt attribute isn't really supposed to show a tooltip (exception is IE6
only), the alt attribute is there to act as "alternative text" so that if
the image didn't show then the user will still know what the image is all
about. So for the alt attribute you should describe the image briefly.

If you want the title, you can just add it -- title="Click image to see
larger size of it" but it's not a good practice to take out the alt
attribute.

For wordpress, when adding an image, there's a field for title and
description, right? The description goes to the alt attribute and title
field goes to title attribute

On 3/21/08, Mr. Awesome <theone.andonly.mr.awesome at gmail.com> wrote:
>
> Just to let you know, when I added an image to a post... the output was
> like this:
> <img src="domain.com/images/my-image.jpg" alt="Blah - Click image to see
> larger size of it. " />
>
> Shouldn't the LAST " be snug with the period? Like such:
> <img src="domain.com/images/my-image.jpg" alt="Blah - Click image to see
> larger size of it." />
>
> AND, when after posting the post, and hovering over the image... the ALT
> wasn't working. I had to change it manually to:
>
> <img src="domain.com/images/my-image.jpg" title="Blah - Click image to
> see larger size of it." />
>
> To have the little pop-up thing show me what it says.... Could the
> output of the ALT tag be changed, and that last ending " be tightened up
> a bit or .. ?
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>



-- 
Mae Paulino | Front End Developer | Blogger
+63 921 647 4253 | YM: maepaulino
http://www.lastleaf.org
http://www.tech-hive.com


More information about the wp-testers mailing list