Previous Message
Next Message

Image text box

Sent by Skip Knox on 15 March 2010 15:03


>I was asking for a "No, because..." or "Yes, because..." response.

Fair enough.

No, because it's not a paragraph, it's an image. A reader (forget humans,
just think reading mechanisms, which can include humans) when it sees a <p>
expects to see a paragraph of content. Instead it sees an image. The proper
markup for that is the <img> tag. If that needs a wrapper, that's what <div>
is for (it's for any arbitrary block, as <span> is for any arbitrary
string).

So, wrenching this over in the direction of CSS, when you want to style an
image and perhaps some associated text, the proper thing to style would be a
<div> rather than a <p>.  It'd be really sweet if HTML had a tag that would
encompass not only the graphic itself but also associated content, but I've
not seen any stirrings in that direction.


Skip Knox
Boise State University
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: