• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Making your WordPress website W3C validated

By Abhishek Ghosh April 19, 2011 9:25 pm Updated on April 19, 2011

Making your WordPress website W3C validated

Advertisement

Previously, we discussed the importance of W3C validation and SEO and shown examples of our websites of both errors, validated and errors which can be corrected. This time we will discuss on making your WordPress website W3C validated; well you might end up with 12 errors; but it is much better than your 80 error for sure.

html5-logo

To comply with W3C standards for your WordPress website, you must take into account several parameters:

 

Declaring a doctype

 

This declaration is found in the header.php file in WordPress. The doctype is the first line of your HTML page, this declaration allows us to know the search bots how HTML is has been used. If you declare a W3C doctype, it must conform to the specifications of the latter, if in doubt about using the code, only the official documents are authentic.

Advertisement

---

The three statements most used at present are XHTML 1.0 Transitional (this language is officially abandoned, but read our note later), XHTML 1.0 Strict and HTML5 (replacing the HTML4 and XHTML).

Here is our doctoype:

 

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”en-US”>

 

We were saying before to read note later, the note is that, if you see in W3C validation that, declaration as Transitional  generating less error or even validating it than your native Strict (you can force in W3C tool like the below screenshot), simply go to Theme editor and change it.

 

Making your WordPress website W3C validated

You can force change the doctype to test in W3C tool

 

This is not cheating or any fraud method, it is the Theme creator (or other plugins and gadgets you use) who have used a mixed up code. As you can guess from the name, Strict is strict and Transitional allows older HTML codes like target=”_blank”. It is almost an impossible work (for non developers like me) to make and mantain WordPress doctype Strict, because WordPress itself adds those old codes from the writing panel.

 

The presentation of content with style sheets (CSS)

 

This is important. Each HTML page containing texts and images is attached one or more cascading style sheets (or CSS). The stylesheet also follows strict recommendations. Follow these recommendations can be assured that the site displays correctly on all browsers. This can be checked from W3C CSS validation.

Though it seems very tough job, practically there is easy way for relatively noob user on programming side. It is the style.css file in your theme that mainly we will think of. This is why simple coded theme platform such as Thesis platform or Genesis works great. They have mainly one CSS file plus only the Child theme’s stylesheet will be used practically. So, if you can code or modify any child theme, it will have less error.

In any case, copy the full Stylesheet after opening in Notepad or any Text Editor and clean up using Clean CSS. Those are regular reader of this website knows that we written ago about how to install WordPress offline for testing. Use that installation for testing the new corrected CSS. Do not change the header part of CSS file that says the name of the Theme, otherwise it will be a mess.

 

Architecture and Semantic HTML

 

Here is needed reference of 500 pages written by W3C, we can feel the thing that are coming in your mind if you are not a developer. Just scan it if you can understand things a bit on the first look. Necessity is the mother of not of only invention but also understanding! When you will understand tweaking in their way helping your website, you will be interested to understand.

 

Understanding the W3C validation report and correcting your WordPress website

 

This is difficult to do for CMS platform like WordPress. This is how we have corrected our other website:

 

  • Understand why the validation tool is marking a red mark. Search for it.
  • Your theme, without any plugin, gadgets should be by default valid. Otherwise you will get mad but can not correct anything. It is something like trying to straighten a dog’s tail. Before buying go to the demo page; copy paste the url to W3C validator to check. This is not fool proof due to several reasons, but a theme with 80 errors should make you thoughtful.
  • Yahoo site meta tag will caught by validation tool as error (so three errors corrected). Simply remove it after few weeks after validation or upload HTML file to your root.
  • Do not copy paste Facebook code from Facebook developer API. Use some facebook plugin (two or three errors corrected).
  • Some Advertisers have incorrect / invalid code : so it is question of compromise.
  • Use xHTML compliant codes (tracking for example) instead of default codes; they offer such option too.
  • Plugins: You have to identify which plugins are pumping invalid codes. Remove them.

 

 

SignatureTagged With how to check if your wordoress site is w3 validated , how to do w3c validation of wordpress website , can wordpress websites be w3c validated? , how to fix W3C not validated in WordPress website , how to make a wordpress website w3c comliante , HTML is not W3C validated in wp
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Making your WordPress website W3C validated

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Importance of W3C validation and SEO of your website

    We know that HTML tags those are not closed mislead search engines to do mistake, this is one reason why we link between W3C and SEO.

  • Editing Blogger’s theme template to have some features like WordPress

    We will discuss about editing the one page template (that is xml file) of Blogger to get your SEO optimized Blogger template which will have most effective SEO features.

  • Tips for chossing the right WordPress theme

    The appearance of the site in WordPress is crucial to the success of its project, many themes are available online, you can find a better or a worse. Here is a comprehensive list of tips to be followed for choosing the right Wordpress theme.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarAnkit Singh says

    December 17, 2011 at 11:44 am

    This is best one article so far I have read online. I would like to appreciate you for making it very simple and easy. I have found another nice post related to this post over the internet which also explained very well. For more details you may check it by visiting this url.

    http://thecustomizewindows.com/2011/04/making-your-wordpress-website-w3c-validated/

    Thanks

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Digital-to-Analog Converter (DAC)September 25, 2023
  • Tips on S Pen Air ActionsSeptember 24, 2023
  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy