• Resolved Nazareth

    (@nazareth)


    Hey folks, getting this error

    there is no attribute “nosave”.
    …rder=”0″ width=”1″ height=”1″ nosave=”” /><a href=”http://

    In the following code:

    <img src=”http://service.bfast.com/bfast/serve?bfmid=****;sourceid=****&#038; bfpid=****&bfmtype=book” border=”0″ width=”1″ height=”1″ nosave=”” /><a

    How do I fix this?

    Also getting error:

    required attribute “alt” not specified

    at the same line:

    …=”0″ width=”1″ height=”1″ nosave=”” /><a href=”http://

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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!

    Thread Starter Nazareth

    (@nazareth)

    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.

    Thread Starter Nazareth

    (@nazareth)

    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”

    Thread Starter Nazareth

    (@nazareth)

    ok thanks- that worked- no book description now and my site passes validation- changing htis to ‘resolved’- thanks again

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    Thread Starter Nazareth

    (@nazareth)

    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

    Done.

    Thread Starter Nazareth

    (@nazareth)

    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

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘there is no attribute “nosave”’ is closed to new replies.