• I was checking my blog out on w3c Markup Validation check (https://validator.w3.org/) and they found 1 error as follows.

    Line 50, Column 26: document type does not allow element “style” here.
    <style type=”text/css”>

    Now I feel dumb because I can not seem to find this error. The line and column number do not help since it could be in any of the php files. Can anyone help and tell me how to correct this error?

    Thanks
    CC

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s not really going to be much easier for us to find the php file in question…

    I can tell you though, the errant definition seems to be in your “panels” area… the three big boxes you have there on your site.

    <div id="panels">
       <div class="p1">
          <style type="text/css">
          <!--
             .style1 {color: #0000FF}
          -->
          </style>

    if you know where that is, then you can fix it. I can’t actually see anything using that style anyway, since there’s nothing in that area that’s 100% blue.

    Thread Starter bosstone

    (@bosstone)

    As I build my blog I keep getting more and more errors when I try and validate my code at https://validator.w3.org/.

    Currently it lists 29 errors. How important is it for me to get rid of all these errors. I ran this check on some major blogs like TechCrunch.com and others and they all seemed to have a lot of errors in this check.

    It just seems that everything I add to my blog creates a error.

    Please let me know your thoughts on if I should spend hours and try and find all these errors and correct them or just let them be?

    As far as SEO is concerned I know its better to have validated code but this is getting crazy. How much will it hurt me?

    Thread Starter bosstone

    (@bosstone)

    Well I fixed all but 4 errors. Can anyone give me any tips on the best way to find my remaining 4 errors quickly in wordpress?

    Any help would be great cause the line and column just don’t work for finding invalid code and I have searched up and down and can not find these last 4 errors.

    Thanks alot

    Thread Starter bosstone

    (@bosstone)

    Well I did it myself. Just click show source under options on https://validator.w3.org and you can find your mistakes easily. Hope this helps someone else.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘W3C Markup Validation help needed for error?’ is closed to new replies.