• 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.

 

 

Signature Tagged 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

This Article Has Been Shared 595 Times!

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

  • Is your website easily accessible?

    Webmasters should also be sensitive to issues of accessibility. Why? What good do a site can be accessed by people with visual disabilities?

  • Guide to optimize content of your blog for mobile devices

    After the launch of Apple’s iPhone, it has indeed brought done a real boost to the smartphone market, followed and surpassed in many ways by Android and to some extent iPad, with more and more users nowadays browse the web via mobile devices.

  • 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.

  • Simple SEO tips reloaded

    We published various SEO tips : both for starters and advanced users. In this article, we will write some tips those are relatively easier to read and understandable for the starters, so these are simple SEO tips.

  • List of Open Source PHP MySQL Based Blogging Softwares

    List of Open Source PHP MySQL Based Blogging Softwares lists the most commonly used and available softwares those can run on any LAMP server easily.

Additionally, 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 Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Making your WordPress website W3C validated," in The Customize Windows, April 19, 2011, March 31, 2023, https://thecustomizewindows.com/2011/04/making-your-wordpress-website-w3c-validated/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT