Home arrow HTML arrow Page 4 - W3C Web Standards
HTML

W3C Web Standards


The days of “this site is best viewed in...” are over! We shall no longer be discriminated against for using the browser of our choice. Forget tedious template management, and be prepared to save some dollars on bandwidth! The World Wide Web Consortium have come to agreement on the new Web Standards that will allow us to code and maintain our pages with far less effort, all the while resting assured that everyone can see them as we intended.

Author Info:
By: Justin Cook
Rating: 4 stars4 stars4 stars4 stars4 stars / 41
April 12, 2004
TABLE OF CONTENTS:
  1. · W3C Web Standards
  2. · An Eagle's-Eye View
  3. · First Component: XHTML
  4. · Attributes
  5. · Second Component: CSS2
  6. · Code Explanation
  7. · Third Component: ECMAScript

print this article
SEARCH DEVARTICLES

W3C Web Standards - Attributes
(Page 4 of 7 )

A rule that applies to attributes as well as the element they describe, is that they must be in lowercase. That's fine for most of us, but some may have to change their coding style, or even the IDE they use.
Also, attribute values must always be quoted, even if we're dealing with numeric values.

Oh and one more thing, no more minimization. This means that


<hr noshade>

must now be written as:


<hr noshade=”noshade” />

What's My Name?

XHTML 1.0 has deprecated the 'name' attribute, and further versions will drop it altogether. That means we will identify elements by their 'id'. We'll see the use of this as we get into the style sheets.

XML / DOCTYPE / NameSpace

We need to define that our page is complying with the rules, and here's how we do it, at the top of every page.


<?xml version="1.0"? >
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

It's best to use the transitional Document Type Definition while we're getting accustomed to the ins and outs of Web Standards. And really, we only need the XML declaration if the character encoding is anything other than UTF-8 or UTF-16.

And that's about it for a brief overview of XHTML, we can get into the meat now!


blog comments powered by Disqus
HTML ARTICLES

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials