Can you help with validation of my site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garfy
    New Member
    • Nov 2006
    • 8

    Can you help with validation of my site

    The first error I get when I validate my site is:

    Error Line 10 column 46: document type does not allow element "META" here.

    <meta name="revisit-after" content="30 days" />
    Last edited by Niheel; Dec 6 '06, 08:31 AM.
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    You should validate your code. Here is an article about using META tags. First thing you should do is switch your doctype to strict:

    [html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/html]

    Comment

    • garfy
      New Member
      • Nov 2006
      • 8

      #3
      why strict

      i use transitional on all of my sites

      can you please explain

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        You aren't transitioning from anything, transitional is to allow you to use deprecated tags.

        Comment

        • steven
          New Member
          • Sep 2006
          • 143

          #5
          As AricC already said (and I'm surprised drhowarddrfine hasn't lectured you yet), all new pages should use the strict DOCTYPE. You aren't transitioning from anything, so you don't use it. You should be coding in strict x/html now.

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            Don't think I didn't notice.

            Comment

            • AricC
              Recognized Expert Top Contributor
              • Oct 2006
              • 1885

              #7
              From this day forth.... The use of strict doctype will be known as the "drhowarddr fine standard"!

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                I've been saying that a long time but others say the same:
                No more transitional doctypes, please
                On Transitional Doctypes
                And there are others.

                Comment

                • AricC
                  Recognized Expert Top Contributor
                  • Oct 2006
                  • 1885

                  #9
                  That's funny they're even asking nicely!

                  Comment

                  • garfy
                    New Member
                    • Nov 2006
                    • 8

                    #10
                    Ok I changed it to strict and now I get 390 errors, before it was lees thatn that

                    can you be more specific why not to use transitional, will that hurt my site?

                    and is there a way to make a flv files validated, that is flash movie files not swf files?

                    Comment

                    • drhowarddrfine
                      Recognized Expert Expert
                      • Sep 2006
                      • 7434

                      #11
                      Part of the problem is you used the Xhtml doctype which has certain requirements, such as lower case in tags and different closing end tags. Use this one and see where you stand:

                      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">

                      It's the HTML strict doctype and you might as well use it and avoid the problems Xhtml will cause you.

                      The only purpose of transitional is transitioning older web pages that use deprecated code while adding newer code and trying to blend them together. It's a heads up for the browser when it interprets your code. The set of rules you are saying your are going to use.

                      Therefore, all new pages should use the strict doctype because you shouldn't be using deprecated code, that is, code that is going away, in new pages.

                      Comment

                      • AricC
                        Recognized Expert Top Contributor
                        • Oct 2006
                        • 1885

                        #12
                        Originally posted by garfy
                        Ok I changed it to strict and now I get 390 errors, before it was lees thatn that

                        can you be more specific why not to use transitional, will that hurt my site?

                        and is there a way to make a flv files validated, that is flash movie files not swf files?
                        You don't need to validate flash files you only need to validate that the code around the flash files is correct. On to the doctype, you're still using transitional you should change to strict.

                        Comment

                        • garfy
                          New Member
                          • Nov 2006
                          • 8

                          #13
                          what do you mean by you do not have to validate the flash

                          if i use the flash swf file I have to use satay mode to validate it

                          and what about the flash movies FLA, how to validate that??

                          Comment

                          • AricC
                            Recognized Expert Top Contributor
                            • Oct 2006
                            • 1885

                            #14
                            I don't know Flash but there isn't anything to validate but the code. You just need to embed the movie properly.
                            [html]<object width="550" height="400">
                            <param name="movie" value="somefile name.swf">
                            <embed src="somefilena me.swf" width="550" height="400">
                            </embed>
                            </object> [/html]

                            Comment

                            • pberardi
                              New Member
                              • Dec 2006
                              • 5

                              #15
                              Originally posted by garfy
                              The first error I get when I validate my site is:

                              Error Line 10 column 46: document type does not allow element "META" here.

                              <meta name="revisit-after" content="30 days" />
                              I am pretty sure that the meta tags have to be in the head
                              Just make sure that the meta tag is in between your <head> and your </head>

                              Comment

                              Working...