1. http://www.htmlcodetutorial.com/images/_IMG_NOSAVE.html
2. For an image the “alt” attribute is mandatory in XHTML – the doctype for WP.
Add it!
where? how? would it be alt=”nosave” ? The whole code does have an alt:
No, we are talking about 2 different things.
Nosave is a nonsense – so delete it.
alt is mandatory – so, add it.
<img src="http://service.bfast.com/bfast/serve?bfmid=***&sourceid=****& bfpid=******&bfmtype=book" border="0" width="1" height="1" alt="this-is-what-text-only-browsers-read-about-the-picture" />
For alt you should add a name, title, description of the image – for accessibility, e.g. browsers that don’t show images.
ok if I don’t want the description of book- would I put alt=””? The reason i ask is the book description is kind of a pain and takes up room I’d rather not have it do- just want the pic of the book
you can have alt=”book cover”
ok thanks- that worked- no book description now and my site passes validation- changing htis to ‘resolved’- thanks again
The reason to have a useful “alt” attribute for images is for blind people, or anybody else who uses a screen reader program. In these cases, it will read the alt text, which is supposed to describe the image.
Thanks Otto, the alt=”Book Description” is still there, but I removed everything after “Book description” <br/> Book title and description’ so i think that leaves the actual book description for the blind, but just doesn’t show the words on my page?
Mod- could youp lease remove the id numbers in the code in my posts- replace them with x’s or something? I can’t edit them now unfortunately
thank you- and thanks for helping on the alt thing- I originally had 32 errors, cleaned them all up but was stuck on that one- Google was much help for “nosave” problems (at least no suggestions that I could understand)- WC3 validator doesn’t like barnes and nobel code very well lol
I also found a pretty good XHTML fixer site at http://www.eggheadcafe.com/articles/html2xhtml/default.aspx which works fairly good- just paste the code and hit ‘convert’ Might save folks some time when running into errors- although it’s not perfect- always keep a copyu of the orifginal code saved until you’re sure new code wiull work