Copy & paste the code below to embed this comment.
Anton P
@Ben Spaulding: Interesting design point regarding left-facing versus right-facing images, which seem thoroughly reasonable. Moreover, where you said “With figures, however, there is one piece of markup I add that is presentational”? I would argue that your markup is not presentational at all. You are adding data about the nature of the image, and the class attribute is the most appropriate place for such metadata.
However, your chosen class name “˜alt’ doesn’t make this metadata clear; I would call the class “˜right-facing’ instead, unless the neutrality of the class name proves critical in simplifying the handling of both left-to-right and right-to-left scripts.
25 Reader Comments
Back to the ArticleAaron Newton
p.s. obviously put line breaks in – the editor on this forum stripped them out…
Anton P
@Ben Spaulding: Interesting design point regarding left-facing versus right-facing images, which seem thoroughly reasonable. Moreover, where you said “With figures, however, there is one piece of markup I add that is presentational”? I would argue that your markup is not presentational at all. You are adding data about the nature of the image, and the class attribute is the most appropriate place for such metadata.
However, your chosen class name “˜alt’ doesn’t make this metadata clear; I would call the class “˜right-facing’ instead, unless the neutrality of the class name proves critical in simplifying the handling of both left-to-right and right-to-left scripts.
Elhusseiny Shahin
Yes, this a good solution for the problem,you should add more great articles right that.
Michael Kelp
Thanks for the interesting article here. Greetings
Marek watzte
Phantastic article, thank you
DOM scripting is great, but why somebody turn off js?