At 03:26 p -0600 07/24/2011, LuKreme didst inscribe upon an electronic papyrus:

On Jul 24, 2011, at 15:15, echo <[email protected]> wrote:

 (c) no size tags once a file is selected;

 width + height attributes are not required on image tags. Perhaps
 omitted to work with some responsive design techniques for images.

Not REQUIRED, but strongly recommended. If someone coded a page without width+height I would make them fix it.

When did it become optional? I thought it was required since, like, 3.2 or something. BTW, there was an old trick whereby if you gave only one dimension, say WIDTH=96, the browser would calculate the other to match the aspect ratio for you. Although now I put my images sizes in their filenames so my Perl scripts (and my eyes) can instantly parse it out (foo-bar-WWWxHHH.jpeg).

 >> (d) apparently enforced alt text, inserted even if I delete it.

 I also would prefer deleting would result in an empty alt attribute,
 but I did find that if you enter a space, that works to make it " "

All text is REQUIRED on all images. Omitting it or setting it to a space is an error, pure and simple.

How do you deal with purely decorative images? Their ALTs should not have "noise" in them. Old versions of Lynx would annoyingly put "[IMAGE]" when the ALT was set to "" but not when set to " " (so I used to do ALT=" " a lot); newer versions of the browser became smarter about ALT="", thankfully.

-boo
Lynx trick:
SPAN.hidden {display:none}
<SPAN CLASS=hidden> </SPAN> <!-- make up for lack of CSS padding -->

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to