4 Replies Latest reply on May 6, 2006 11:18 AM by Newsgroup_User

    validating pages?

    Level 7
      I am trying to validate my page and I think have fixed most of the
      things causing trouble so far.

      http://validator.w3.org/check?uri=http%3A%2F%2Fwww.marysidney.com%2F

      The two things that I have not done yet and am wondering if I should are
      the following.

      1. there is no attribute "target".

      <li><a href=" http://www.marysidneysociety.org" target="_blank">The
      Society</a></li>

      I think that is straight from DW? What is wrong with this?



      2. required attribute "alt" not specified.

      I thought I could just leave them out?


      The other thing is, do I need to validate every page in my web site?

      Thanks a lot!
      Brian

        • 1. Re: validating pages?
          Level 7
          .oO(Brian)

          >The two things that I have not done yet and am wondering if I should are
          >the following.
          >
          >1. there is no attribute "target".
          >
          ><li><a href=" http://www.marysidneysociety.org" target="_blank">The
          >Society</a></li>
          >
          >I think that is straight from DW? What is wrong with this?

          In (X)HTML Strict there's no attribute 'target' for good reasons. If you
          really think you have to use it you should use (X)HTML Transitional
          instead. Or drop the 'target' attribute. It's not necessary at all.

          >2. required attribute "alt" not specified.
          >
          >I thought I could just leave them out?

          It's required. For purely decorational images use

          alt=""

          >The other thing is, do I need to validate every page in my web site?

          You don't need to, but you should.

          Micha
          • 2. Re: validating pages?
            Level 7
            > 1. there is no attribute "target".
            >
            > <li><a href=" http://www.marysidneysociety.org" target="_blank">The
            > Society</a></li>

            in XHTML strict, there is no attribute 'target'.

            To make that valid, get rid of it..

            If you want a pop-up window, use javascript for that.

            If you are using target attributes for frames, then you want to use a
            doctype that accepts frames (transitional).

            > 2. required attribute "alt" not specified.
            >
            > I thought I could just leave them out?

            Nope. Every image should have an alt attribute. Decorative images should
            have an empty alt attribute (alt="")

            > The other thing is, do I need to validate every page in my web site?

            There's no law requiring it.

            -Darrel


            • 3. Re: validating pages?
              Level 7
              In article <e3gg91$mm7$1@forums.macromedia.com>,
              "darrel" <notreal@nowhere.com> wrote:

              > > 2. required attribute "alt" not specified.
              > >
              > > I thought I could just leave them out?
              >
              > Nope. Every image should have an alt attribute. Decorative images should
              > have an empty alt attribute (alt="")

              DW8 (and maybe earlier but not DW4) gives <empty> as an option in the
              Properties manager. I like that. I do one shim.gif then S/R the rest.
              • 4. Re: validating pages?
                Level 7
                On Fri, 05 May 2006 14:32:17 -0700, darrel <notreal@nowhere.com> wrote:

                > Nope. Every image should have an alt attribute. Decorative images should
                > have an empty alt attribute (alt="")

                Strictly speaking (pun intended), I believe that decorative images are
                supposed to be done via CSS using the background-image property. The
                <img> tag is intended to be used with semantically important images, each
                of which should have a meaninful alt attribute (that's why it's
                required). If you are using an empty alt attribute it's probably a sign
                that you are mis-using the <img> tag.

                This is in regards to XHTML 1.1 (or 1.0 Strict) only. And I'm not a
                lawyer nor a member of any W3C committee's, so I may be mis-representing
                it.

                Chris Perkins
                http://www.medialab.com/sitegrinder <- Photoshop to the web plug-in.
                XHTML 1.1 and CSS output. No slicing.


                --
                Using Opera's revolutionary e-mail client: http://www.opera.com/mail/