Time for action – validating your HTML

Let's see how validation works. The process for validating your code is different, depending on whether you're working locally or remotely. First, the process for working remotely:

  1. Go to http://validator.w3.org/.
  2. Type in the URL of the site running your theme—in the case of my site, it's http://rachelmccollin.co.uk/opensourcemagazine/.
  3. Click on the Check button.

Next, the process if you're working locally:

  1. Save a static HTML file with the markup that WordPress outputs from your theme. To do this, in your browser, click on Save Page As and save as an HTML file.
  2. Go to http://validator.w3.org/.
  3. Click on the Validate by File Upload tab.
  4. Upload your file.
  5. Click on the Check button.

What just happened?

You used the W3C validation service to check the code in your theme.

Let's see what the results are:

What just happened?

As you can see from the previous screenshot, there are some problems at the moment. To find out what they are, let's scroll down the page:

What just happened?

There are three instances of the same error relating to a category tag.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset