Saturday, 30 May 2015

Web-standards and validation - CSS Tutorial 16


Web-standards and validation

W3C is the World Wide Web Consortium, which is an independent organization that manages code standards on the web (e.g. HTML, CSS, XML and others). Microsoft, The Mozilla Foundation and many others are a part of W3C and agree upon the future developments of the standards. If you have been working just a bit with web design, you probably know that there can be a big differences in how a webpage is presented across different browsers. It can be very frustrating and time-consuming to create a webpage which can be viewed in Mozilla, Internet Explorer, Opera and all the rest of the existing browsers.
The idea of having standards is to agree upon a common denominator on how to use web technologies. This means that by observing the standards, a webdeveloper has a certainty that what he or she does will work in a more appropriate manner across different platforms. We therefore recommend that you back up the work carried out by the W3C and validate your CSS in order to observe the standard.

CSS validator

To make it easier to observe the CSS standard, W3C has made a so-called validator which reads your stylesheet and returns a status listing errors and warnings, if your CSS does not validate. To make it easier for you to validate your stylesheet, you can do it directly from this webpage. Simply replace the URL and add the URL of your stylesheet below and click to validate. You will then be informed by the W3C site if there are any errors found.




If the validator does not find any errors; this picture will be shown, which you can put on your website to illustrate that you are using validated coding:
Valid CSS!
The validator can also be found at this link: http://jigsaw.w3.org/css-validator/

Written by

is one of the Team Member of Programmer vs Hacker. He has written many articles on this website and is a patner of this website.

0 comments:

Post a Comment

We’re eager to see your comment. However, Please Keep in mind that comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

© 2015 Programmer vs Hacker. All rights resevered.