What are Web Standards? A comprehensive explanation of what is comprised in the term
This article is also available in Brazilian-Portuguese and in Spanish.
The term Web Standards is featured prominently all over the web, in meetings with customers and amongst web developers in general. However, the problem is that people have different views on what it actually means and encompasses.
Therefore, I will try to explain my views on it and what most people actually mean when they refer to Web Standards.
There aren’t any Web Standards, only Recommendations
First, what you should know is that there doesn’t exist any actual Web Standards when it comes to many technologies. There are indeed standardizing organs, such as ISO standards and Ecma, but when most people say Web Standards they refer to the work of W3C.
The difference is that W3C doesn’t actually set standards, but instead recommendations. In their own words:
A W3C Recommendation is a specification or set of guidelines that, after extensive consensus-building, has received the endorsement of W3C Members and the Director. W3C recommends the wide deployment of its Recommendations.
What people mean with Web Standards
Foremost, Web Standards are used in reference to developing HTML/XHTML, although it is recommended to know that the work of W3C consist of many other Technical Reports and Publications. Usually, what the term Web Standards consists of are these areas:
- Valid HTML/XHTML code
- Semantically correct code
- Separation of content (HTML/XHTML), presentation (CSS) and interaction (JavaScript)
To some people, it means all of the above, and to others, just one of them. What is important to know, though, is that all three are crucial for developing a genuinely good web site.
Valid HTML/XHTML code
Let’s take it from the top: the number one thing people want when they ask for Web Standards is that the code in the web site should validate. For most people, this only means the HTML/XHTML code, but there are also tools to validate your CSS code. Basically, what validating your HTML/XHTML code means is that the code you have in your web page should be according to the definitions given by the doctype you have chosen for your document.
It is important to choose your doctype wisely, since it will affect how the HTML/XHTML code will be interpreted and what layout mode will be activated in different web browsers. By having valid code, you don’t have to rely on different web browser’s varying error-handling mechanisms, but instead it is meant to be rendered the same by all.
By validating your code, you are very well likely to find errors and attend to a number of layout problems you never thought would be related to the actual HTML/XHTML code. It will make it easier to identify potential errors, lead to faster web development and building a better ground for maintenance.
Read more about why you should validate your code
Tools for validating your code
There are a number of online validation tools as well as add-ons to different web browsers. Here are the most popular ones:
- W3C Markup Validation Service
- W3C CSS Validation Service
- WDG HTML Validator
- Firefox HTML Validator add-on
- Internet Explorer Developer Toolbar
Read more about doctypes
- Fix Your Site With the Right DOCTYPE!
- Activating the Right Layout Mode Using the Doctype Declaration
- W3C’s Recommended list of DTDs
Semantically correct code
Something that is often overlooked is the meaning of semantically correct code. The idea is that each element in a web page should have an element that matches its meaning and conveys its value and purpose. The basic explanation of this is to use proper elements depending on the context.
Code examples
This code is semantically poor
<div class="page-heading">Title of the page</div>
<div class="text-paragraph">
Some text explaining what this web
site is about, which is really a
complete paragraph of text
</div>
<a class="menu-item" href="/item-1">Menu item 1</a>
<a class="menu-item" href="/item-2">Menu item 2</a>
<a class="menu-item" href="/item-3">Menu item 3</a>
This code is semantically rich
<h1>Title of the page</h1>
<p>
Some text explaining what this web
site is about, which is really a
complete paragraph of text
</p>
<ul class="menu">
<li><a href="/item-1">Menu item 1</a></li>
<li><a href="/item-2">Menu item 2</a></li>
<li><a href="/item-3">Menu item 3</a></li>
</ul>
The guidelines and recommendations for good semantic code are pretty easy to follow. Just use heading elements (<h1> – <h6>) for different types of headings, paragraph elements (<p>) for paragraphs of texts, and lists (<ul>, <ol> etc) for any kind of listing you might have, and so on.
This will help you to more easily find certain parts in a web page and it will dramatically decrease load time with less code, and at the same time strongly improve maintenance aspects of your web site. And, not to forget, it will help you with SEO, because semantic code will help Google and other search engines to properly understand and index every bit of your code, for maximum results.
Important to note is that proper semantics should never be confused with how it is being rendered. Elements will most definitely be rendered differently depending on the visiting web browser, but that is not the fault of the semantics; just differing web browser implementations. The solution to this is not to alter good semantic code, but instead accomplish a unified presentation through CSS.
Read more about semantics
Separation of content (HTML/XHTML), presentation (CSS) and interaction (JavaScript)
There are a number of reasons why it is vital for you to separate your HTML/XHTML, CSS and JavaScript code. They have very different purposes, and the approach to how to use them should be thought-through.
Main reasons for separation
- Performance: External files such as
.cssand.jswill be cached in the end user’s web browser after the first load, hence dramatically decreasing load times and improving the experience. - Overview: You know where to look for and place code, each layer for its own purpose.
- Reusability: You can easily reference code and re-use it across the entire web site.
- Maintenance: You have all the code in one central location, applying all presentation and interaction code to all the web pages within a web site.
Read more about separation of HTML/XHTML, CSS and JavaScript
What about accessibility?
A very common misconception is that a lot of extra work will have to go into making a web site more accessible. The thing is, by ensuring you live up to the three categories mentioned in this article, you have come a very far way in making a web site accessible.
Valid code, especially with a strict doctype, will help you find content errors and non-existing alternate texts. Good semantic code will make it easier for any assistive device, or plainly just viewing the web page without CSS, much easier and understandable.
And, by separating interaction code (JavaScript) from the HTML/XHTML code, the web site will work without JavaScript if it is built on a solid ground. Then, naturally, you can progressively enhance the web site experience by adding a JavaScript layer, but a web site should never be fully dependent on it for the basic parts to work.
Read more about accessibility
Where to go from here
Below I’ve gathered a list of resources for learning more about following the Web Standards established above:

50 Comments/Reactions
May 21st, 2007 at 15:59
Very nice article and good explanation of Web Standards. Sometimes we forget that these are only recommendations. Only wish the software (browser) developers were as consistent as most designers.
May 21st, 2007 at 16:16
Robert, you’ve got a typo in your semantic markup example: the first line currently reads
<ul class="menu">Menu item 1</ul>when it should be just
<ul class="menu">May 21st, 2007 at 16:50
[...] NekÄÂdi reÄÂli web standarti neeksistÄ“, ir tikai rekomendÄÂcijas! PaÅ¡i saprotat, ka tÄ ir ironija, taÄÂu tiem, kuri ar webizstrÄÂdes standartiem iepazÄ«stas tikai tagad, noderÄ«gs bÅ«s Roberta raksts “What are Web Standards? A comprehensive explanation of what is comprised in the term“. [...]
May 21st, 2007 at 19:46
[...] Here’s your answer! Sharing is good! [...]
May 21st, 2007 at 22:05
Good definition to Web Standards!
I think people must know more about semantic…
Valid codes doesn’t mean that your site’s is correctly developed.
May 21st, 2007 at 22:54
The Bespeckled SEO,
Thank you!
Nick,
Thanks, my bad. It has now been corrected.
Carlos,
Absolutely, solely validness isn’t necessarily good.
May 22nd, 2007 at 4:50
[...] artÃÂculo con una explicación muy clara de todo lo comprende el término Web Standrads. Primero que nada, [...]
May 22nd, 2007 at 13:55
great article !
do you mind if I use it to write some kind of introduction to web standards in french for some colleagues at work. It strictly won’t be a translation, more an adaptation. maybe it’ll be on my blog too. (I will link you back, of course)
May 22nd, 2007 at 14:22
engy,
No problem, that sounds fine with me!
If you want to translate it into French and publish it in your blog would be nice.
May 22nd, 2007 at 20:38
Good explanation. I’m going to use this as a reference for people.
May 22nd, 2007 at 21:51
Robert — Hope you are well.
Thanks for the article, and I’ll also use it as a reference.
On a similar topic, I thought you might be interested in a presentation I did recently at a Refresh Miami meeting: http://webstandardsforskeptics.com/
May 22nd, 2007 at 22:58
Kris,
Thank you!
Michael,
I hope you’re well too; it’s been a while!
Thanks for the link!
May 23rd, 2007 at 4:14
[...] What are Web Standards? – a comprehensive explanation of what is comprised in the term [...]
May 23rd, 2007 at 12:45
[...] “There aren’t any Web Standards, only Recommendations.” (“There is no spoon” ) Spread the word! [...]
May 24th, 2007 at 13:01
[...] What are Web Standards? – a comprehensive explanation of what is comprised in the term [...]
May 24th, 2007 at 18:33
[...] comprehensive explanation of what is comprised in the term and what not. At the end of the article, a list of resources for [...]
May 26th, 2007 at 19:29
[...] meus feed’s no Google Reader vi um artigo legal. Ele aborda tudo que pode se fazer com a propriedade background. Todos os atributos que podem ser [...]
May 28th, 2007 at 23:00
[...] Read this article for all the details you’ll ever need on the subject. 0 Comments posted on “What is meant by Sematically Correct Markup?” Post a comment [...]
May 28th, 2007 at 23:02
[...] Read this article for a good discussion on the topic. 0 Comments posted on “What are Web Standards?” Post a comment [...]
May 28th, 2007 at 23:04
[...] Full article here. 0 Comments posted on “Separation of content from presentation” Post a comment [...]
May 29th, 2007 at 14:42
[...] More… [...]
July 7th, 2007 at 11:45
Wow!! This is a great article about web standards. For sure, these are recommendations THOUGH I would think that it would be great if they were adopted by all web browser authors.
July 17th, 2007 at 11:10
[...] What are Web Standards? A comprehensive explanation of what is comprised in the term [...]
July 17th, 2007 at 15:58
Hi Robert, great article!
Thanks for writing it, it is a great explanation about web standards. It could save me hours of reading some time ago.
I wanted to ask your permission to translate this article into spanish and republish it, referencing you as the author and linking to this page, of course.
Please let me know if that’s fine.
thanks!
July 20th, 2007 at 19:15
A great article on Web Standards, saying what a growing minority have been screaming for years, Web accessibility is easy if you follow standards!!.
I have recently started a blog and It took me about 15 minutes to go through wordpress and make it semantically correct, although unfortunately a few sidebar features had to be removed until I can find time to recode them.
Again ,well done on a great article!
July 24th, 2007 at 4:18
Enjoying your holiday?
I’ll send my new HTML / CSS students to this page when I start my latest job next week. It pulls a lot of other links together into one shorter easier to comprehend version. Great.
I think I originally read this in May…
July 30th, 2007 at 18:02
great article about web standards…thank you
September 2nd, 2007 at 6:37
[...] What Are Web Standards? [...]
October 24th, 2007 at 22:18
[...] What are Web Standards? – a comprehensive explanation of what is comprised in the term [...]
August 26th, 2008 at 20:18
[...] web standards” would reveal that yours truly is the first blogger on the list with my article What Are Web Standards? A Comprehensive Explanation Of What Is Comprised In The Term. So why the hell wasn’t I asked? Instead they asked people like some Swedish has-been in [...]
September 8th, 2008 at 19:01
[...] The other thing I would like for you to see are web standards, what they are and why they are important. Because of everyones different interpretation of web standards, it has been said that there are no web standards, but just recommendations. For example, you need a “valid HTML/XHTML, semantically correct code, and the seperation of content, presentation, and interaction.” -Source [...]
December 9th, 2008 at 0:36
[...] Standards What are web standards About Web Standards The Web Standards [...]
December 10th, 2008 at 10:49
[...] http://www.robertnyman.com/2007/05/21/what-are-web-standards-a-comprehensive-explanation-of-what-is-... [...]
February 9th, 2009 at 23:11
[...] a semantic web, separation of content (HTML), presentation (CSS) and interaction (JavaScript), and web standards started its journey to becoming the lingua franca of more aware interface [...]
February 11th, 2009 at 6:46
[...] a semantic web, separation of content (HTML), presentation (CSS) and interaction (JavaScript), and web standards started its journey to becoming the lingua franca of more aware interface [...]
February 11th, 2009 at 7:04
[...] a semantic web, separation of content (HTML), presentation (CSS) and interaction (JavaScript), and web standards started its journey to becoming the lingua franca of more aware interface [...]
March 6th, 2009 at 23:10
[...] What are Web Standards? A Comprehensive Explanation of What is Comprised in The Term by Robert Nyman [...]
April 3rd, 2009 at 11:30
The web standards are used to design a website, which comprised of a web site designing tools and web development tools. These tools are helpful to designing and developing websites.
April 4th, 2009 at 9:02
[...] Once you are familiar with the syntax and everything, you might want to move one step ahead by validating you works to meet the web standards. What are web standards? Read about it here. [...]
May 21st, 2009 at 10:20
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term from Robert’s Talk [...]
May 30th, 2009 at 1:12
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term from Robert’s Talk [...]
June 10th, 2009 at 21:23
[...] What are Web Standards: A comprehensive explanation of what is comprised in the term [...]
July 22nd, 2009 at 20:40
Web standards are good sometimes and helps minimize bad coding habits
September 23rd, 2009 at 23:29
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term posted under Week 03 [...]
September 27th, 2009 at 15:54
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term – Robert’s Talk [...]
October 19th, 2009 at 5:36
I think web standards are very important. Some sites do not check their standards using the basic tool. Alot of the time this will fix or highlight broken links and problem areas in the site. Great post as I believe more people should know about web standards.
November 1st, 2009 at 23:42
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term from Robert’s Talk [...]
May 18th, 2010 at 9:07
Very good article and nice explanation of Web Standards. Sometimes we forget that these are only recommendations
May 29th, 2010 at 20:35
Web standards are essential and Browsers like IE need to be more compliant.
June 21st, 2010 at 12:56
[...] What Are Web Standards? A Comprehensive Explanation of What is Comprised in the Term from Robert’s Talk [...]
Write a comment
Twitter reactions