Welcome

Thank You for Visiting my Blog!
Showing posts with label Web Standards. Show all posts
Showing posts with label Web Standards. Show all posts

Wednesday, October 27, 2010

Validating the W3C Web Standards

Run a few (at least three) of the sites that you visit regularly through the validator.

Regularly, I visit Facebook, Twitter, and Wordpress. These three website are extremely large and have a ton of visitors. I ran each through the validator to see how they validated with the W3C web standards.


Do they validate? If not, take a look at some of the errors to get a sense of why they’re failing.

Facebook did not validate. I found 12 errors on the home page. I took a look at some of the errors and noticed Facebook failed due to only two different error messages. One error was in the attributes and eleven errors were in the start tags.


Twitter did not validate. I found 20 errors on the home page. I noticed that Twitter failed due to two similar error messages as well. 18 of the errors consisted of Bad value for the attribute name on element a. The other two errors were for attribute data not allowed on element div at this point.


Wordpress did not validate, either. At least, I only found 2 errors on their home page.
Both error messages were for no attribute. One was for “property” and the other was for “size”.


These errors seem pretty easy to fix. As many members as they have,
I wonder why they have not fixed the errors yet?


What is a doctype?

A doctype is a simple name for Document Type Definition or DTD declaration. It defines the elements and attributes used in certain HTML or XHTML documents. Different types of software have different uses for a doctype. Web browsers use the doctype to decide on a rendering mode. Markup Validators check the doctype to decide which rules apply to the document. When creating any kind of HTML or XHTML document, the DTD declaration should be the first thing you have.


What does it do?

The doctype controls and monitors the way a HTML document or a XHTML document is viewed by a web browser. Without a doctype, the web browsers will give you undesirable presentation results. The structure of the document will not match your original desired look. By controlling and monitoring the doctype, your document will transition your presentation results as you intended.



What case can you make for web standards as it relates to business?

I believe using web standards has many benefits for businesses. From my perspective, using web standards would help control and maintain my website. Using web standards always a business to make changes to their website easily. I would much rather have a website that could be viewed by all web browsers and all users, than miss out on consumers because of errors on my site. It is more cost effective to use web standards than lose out on consumers and sales. Being able to update and change content without having to rebuild the whole website also saves a business money in the end. The bottom line of every business is how it uses funds wisely to gain financially.


References: