HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Validation: HTML/XHTML

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#90880 (In Topic #18340)
Avatar

Fan in training

Validation: Invalid Errors HTML/XHTML

Hi,

please advice me how can I correct the erros from validation  HTML/XHTML

Errors found while checking this document as HTML5!

Francizor.ro
Validation: Invalid

Errors: 21 X-W3C-Validator-Warnings: 2 Content-Type: text/html; charset=UTF-8 Vary: Accept-EncodingErrors: 21 X-W3C-Validator-Warnings: 2 Content-Type: text/html; charset=UTF-8 Vary: Accept-Encoding

Regards  and thanks

Costin
Back to the top
 
Posted
Rating:
#90881
Avatar

The default v9 theme validates, apart from some semantic rel/meta stuff which is designed as extendable but the W3C validate flags usage that it is not aware of as non-valid. Remember HTML5 is not a standard yet, and that the HTML5 committee has intentionally devalued the importance of validation (mostly Google's influence, as none of their stuff validates).

If you can show those '21 errors' I can confirm, you just posted the notice of them.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90882
Avatar

Fan in training

Hi Chris,

the errors

Validation Output: 21 Errors

  1. Warning Using windows-1252 instead of the declared encoding iso-8859-1.

  2. Error Line 32, Column 49Bad value baseurl for attribute rel on element link: Keyword baseurl is not registered.
    		<link rel="baseurl" href="http://francizor.ro" />
    Syntax of link type valid for <link>:
    A whitespace-separated list of link types listed as allowed on <link> in the HTML specification or listed as an allowed on <link> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  3. Error Line 33, Column 65Bad value sitemap for attribute rel on element link: Keyword sitemap is not registered.
    		<link rel="sitemap" href="http://francizor.ro/ocp_sitemap.xml" />
    Syntax of link type valid for <link>:
    A whitespace-separated list of link types listed as allowed on <link> in the HTML specification or listed as an allowed on <link> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  4. Error Line 154, Column 184An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
    		…://francizor.ro/imgcoco/ifbe-2013_468.gif" width="468" height="60" /></a></div>

  5. Error Line 182, Column 95Attribute name not allowed on element meta at this point.
    		…VY_XG7CU8ESWMcF_NKbxYzMrSM9MiVZThu4u8JN8IRo" name="google-site-verification" />
  6. Error Line 182, Column 95Element meta is missing required attribute itemprop.
    		…VY_XG7CU8ESWMcF_NKbxYzMrSM9MiVZThu4u8JN8IRo" name="google-site-verification" />
  7. Error Line 245, Column 4No p element in scope but a p end tag seen.
    		</p>

  8. Error Line 271, Column 4No p element in scope but a p end tag seen.
    		</p>

  9. Error Line 434, Column 165No p element in scope but a p end tag seen.
    		…i din Romania,director de afaceri si multe alte informatii despre francize.</p>

  10. Error Line 434, Column 165Element p not allowed as child of element h3 in this context. (Suppressing further errors from this subtree.)
    		…i din Romania,director de afaceri si multe alte informatii despre francize.</p>
    Contexts in which element p may be used:
    Where flow content is expected.
  11. Error Line 435, Column 4Heading cannot be a child of another heading.
    		<h2>

  12. Error Line 487, Column 174The align attribute on the div element is obsolete. Use CSS instead.
    		…gin-top: 0px; margin-bottom: 0px; font-family: Arial, Helvetica, sans-serif; ">

  13. Error Line 488, Column 75The font element is obsolete. Use CSS instead.
    		…ace="Tahoma" style="font-size: 11px; ">Channel F este o platforma initiata, de…

  14. Error Line 489, Column 172The align attribute on the div element is obsolete. Use CSS instead.
    		…gin-top: 0px; margin-bottom: 0px; font-family: Arial, Helvetica, sans-serif; ">

  15. Error Line 491, Column 172The align attribute on the div element is obsolete. Use CSS instead.
    		…gin-top: 0px; margin-bottom: 0px; font-family: Arial, Helvetica, sans-serif; ">

  16. Error Line 492, Column 75The font element is obsolete. Use CSS instead.
    		…ace="Tahoma" style="font-size: 11px; ">Channel F is a platform initiated, owne…

  17. Error Line 494, Column 6No p element in scope but a p end tag seen.
    				</p>

  18. Error Line 521, Column 107Bad value archives for attribute rel on element a: Keyword archives is not registered.
    		…zor.ro/site/index.php?page=news&amp;type=misc&amp;id=general">View all</a></li>
    Syntax of link type valid for <a> and <area>:
    A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  19. Error Line 581, Column 94Bad value site_map for attribute rel on element a: Keyword site_map is not registered.
    		…="site_map" href="http://francizor.ro/index.php?page=sitemap">Site map</a></li>
    Syntax of link type valid for <a> and <area>:
    A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  20. Error Line 584, Column 99Bad value site_rules for attribute rel on element a: Keyword site_rules is not registered.
    		…cesskey="7" href="http://francizor.ro/site/index.php?page=rules">Rules</a></li>
    Syntax of link type valid for <a> and <area>:
    A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  21. Error Line 587, Column 98Bad value site_privacy for attribute rel on element a: Keyword site_privacy is not registered.
    		…ccesskey="8" href="http://francizor.ro/index.php?page=privacy">Privacy</a></li>
    Syntax of link type valid for <a> and <area>:
    A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
  22. Error Line 590, Column 165Bad value site_contact for attribute rel on element a: Keyword site_contact is not registered.
    		…t=http%3A%2F%2Ffrancizor.ro%2Findex.php%3Fpage%3Dstart">Leave feedback</a></li>
    Syntax of link type valid for <a> and <area>:
    A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.
Back to the top
 
Posted
Rating:
#90884
Avatar

It sounds mostly as I said, but with also some errors in user data and in what I think is probably Google Webmaster Tools validation code you added.

I really wouldn't worry – validate google.com/microsoft.com and see what happens ;).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90885
Avatar

Fan in training

validated google.com
I added the  code from Google Webmaster Tools and i still have this erorr.

Costin

Back to the top
 
Posted
Rating:
#90889
Avatar

I'm just saying that if you validate google.com, you'll find the biggest company behind HTML5 has a website full of HTML5 errors ;). Nobody in the industry treats validation seriously anymore – ocPortal validates, but lots of code you might put into it often will not.

I like things to validate too, but it's just not that important.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#90892
Avatar

Fan in training

OK, thanks.
Costin
Back to the top
 
Posted
Rating:
#108546

Non-joined user

Hi guys!

For the time being its 257 Errors for the clean install of ocPortal :(
Back to the top
 
Posted
Rating:
#108547
Avatar

Community saint

If this were a problem, it wouldn't be a problem for long as Chris is usaully on the ball with pretty much everything. As Chris has already said, there is no standard yet, so how can there be proper validation of that standard? I am in the not worried camp :)
Back to the top
 
Posted
Rating:
#108548
Avatar

I just did a validation of a fairly clean install. The only errors I got were either unregistered rel keywords (which really are not errors, as that's intentionally an extendable thing), or errors coming up from the RSS feed I had there.

We actually have an HTML validator in our test set, and test every template. I won't say it's perfect, but chances are it's non-default content, or things being taken out of context. The teams of these validators are under-resourced, so often messages aren't reported in an accurate way, e.g. with the rel keywords.

If there are actual validation errors in our XHTML5 please report them individually as bugs.

Finally, I'd note I'd be surprised if any major website validates nowadays. I don't want to have errors, but if you look at what is out there, sites like Google or YouTube are stacked full of errors. With HTML5 W3C did a major reverse course on how they specified the web - they specified how invalid code would render in the specs (i.e. a compliant browser has to render incompliant code in a defined way), and stopped promoting XHTML, because Google were spear-heading HTML5 and wanted to promote developing on the edge and saving bytes – as a result the culture of web developers changed a lot, for better or worse.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: