spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / web / dev / clockwise OverviewPrinciplesDueling BrowsersSafety NetXFilesValid HabitsLayoutNamesStyle RulesHTMLLast Word

The Clockwise Box (Valid Code)

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source
  1. First, write valid HTML.
    Refer to the current W3C recommendations, which are downloadable in a choice of formats. In case you are new at reading this rather mild mannered rule book, "Deprecated" means "Do not use this syntax any more".
  2. Close all your tags.
    XML parsers always need to be told where an element starts and ends. Not only does this mean not leaving out any </p> tags, it means you need to close the tags for empty elements as well. In markup, an empty element has no content not described in the tag itself. These tags need to contain their own closers. Like so:
    <br />; <hr />; <img src="path/filename" width="50" height="50" />. Don't forget the space before the slash.
  3. XML is case sensitive.
    Use lower case tags and attributes in your code. This one will take some getting used to for a lot of us. Traditionally these have not been case sensitive, and they have for some time been returned from script queries as upper case in our favorite browsers.
  4. All attributes, including constants and integers, need to be enclosed in quotes. If you've been sloppy here, tighten up.
  5. The final rule may be a non event if you already put styles and scripts in external files. You need to use the somewhat obscure CDATA escape sequence for characters like "<,>, and &" in included scripts. You will be fine if you src out your scripts.

And that, Ollie, as Stanley said while the piano above them got bigger and bigger, is all there is to it. It is not a lot to do, mostly changing a few habits.

 

 

Layout before Code  Next Page

OverviewPrinciplesDueling BrowsersSafety NetXFilesValid HabitsLayoutNamesStyle RulesHTMLLast Word


spacer

Comments are welcome

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution

 




URL: http://webreference.com/dev/clockwise/clockwise5.html