Wednesday, July 23, 2008

Learn Web Standards with Opera and Yahoo!

The people over at Opera Software (the Opera browser developers) and the Yahoo! Developer Network have released the Web Standards Curriculum to teach people how to use web standards when developing web sites. Right now it consists of 23 articles that discuss many topics including an introduction to web standards, design concepts, and HTML development. More to come in September...

I think that it's a great idea, and I've already taken a look at the Intro to Web Standards and Web Design Concepts articles. They are written in a clear non-jargon style that is easy to understand and remember.

This curriculum is supported by the Web Standards Project (WaSP) and many other organizations and universities, and it continues to gain support.

Find the curriculum here: http://www.opera.com/wsc/

Wednesday, July 2, 2008

Code it Right: XML Naming Conventions

Name Your XML Elements Correctly!

Two blog posts ago I mentioned what XML was and why should you use it. In this post I'll discuss the naming conventions that you should follow when writing XML element names.

  • There are no reserved words that you need to avoid, as in JavaScript or programming languages.
  • Names can start with letters of the alphabet or non-Latin characters, upper case or lower case, or a dash. You can't start names with numbers or punctuation marks.
  • After the first character of the name only numbers, hyphens and periods are allowed.
  • Names can't have any spaces. For example:
    <my   tag>
  • Don't use the letters "XML" as the beginning of a name - neither lower, upper or mixed case.
  • Don't use colons ( : )
  • Don't place a space after the opening <
    <   this>
    is not allowed. However, you can place a space before the closing >

It's important to know that XML tags are case sensitive. So you can't start an element like this: <Mytag> and close it with </mytag> You'll get an error. I would recommend you stick with only using lowercase, or your own style that you use consistently.

XML and Whitespace

If you add space in your element data (called PCDATA) then that space will not be stripped out. For example:

<mytag>This space           will not be stripped out, as it would be in HTML</mytag>

Stay tuned for more posts on well-formed XML.


Firefox 3 World Record Update

I just got an email from SpreadFirefox.com stating that the official number of Firefox 3 downloads on Download day (June 17, 2008) was 8,002,530 downloads! That's going to be a tough record to beat!