Captain Awesome's Weblog
20Jun/100

Updated to WP 3.0

Woot.

Filed under: Uncategorized No Comments
28Jan/101

Which doctype SHOULD I use? (Or, HTML vs XHTML)

Any web designer should know what a doctype is, but the big question is, WHICH one? This is what I have heard bounced around the office (I work for idiots):

  • <!DOCTYPE html> isn't a real doctype
  • XHTML is the future and HTML is obsolete
  • The only difference between HTML and XHTML is the latter requires indenting

I'm not sure where that came from, but none of it is true. Allow me to correct it:

  • <!DOCTYPE html> is the real doctype for HTML5
  • HTML is not obsolete
  • The third one is too dumb for me to comment on

Now, on to HTML and XHTML. Right now, the difference isn't huge. XHTML is harder to validate, but it forces you to use cleaner code. However, nothing is stopping you from using said clean code in HTML. For example, HTML 4 and 5 will accept either <br> or <br />. The second one is a better choice, XHTML forces it.

In the future, maybe in ten years, XHTML will be the norm. The idea is to integrate HTML with XML (hence the "X"), and be able to include other markup languages such as MathML. XHTML has been around since 1999 (something like that), and it's made little progress since then, so, you decide what to think of that.

At this point, in January of 2010, I believe HTML5 is the best way to go. Why? It's moving quickly, the doctype isn't a pain in the ass to type (I still copy and paste XHTML's from W3Schools......), and it has some awesome tags. Just to make it the focal point of this blog entry:

Use this doctype: <!DOCTYPE html>

Yes, HTML5. Remember, being a newer standard, you CANNOT use old presentational tags such as <font>, <u>, and <center>, and, while valid, you shouldn't use tables for layout. Fun factoid: HTML was never intended to have these tags, they were added in HTML3 and this caused nightmares. They were removed again in HTML4.

If you aren't comfortable with current web standards, I recommend you use an HTML4 doctype. Here are the three to choose from:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML4 Strict: Don't bother with this one, just use HTML5 (<!DOCTYPE html>).

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML4 Loose/Trans: Allows use of presentational elements.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
HTML4 Frameset: Allows use of presentational elements, and frames (Remember, SSI > Frames)

I hope this gives you some idea of which to use.

25Dec/090

Merry Christmas, bitches.

Blah, blah, blah, something about holiday cheer. Merry Christmas!

This was actually written a week ago. Post-dated entries for the win.

8Dec/092

Downtime

The blog and everything else on my Dreamhost server was down for about 15 minutes. Apologies.

Tagged as: 2 Comments
25Sep/090

iMagic OS installs updates without your permission or knowledge

Upgrades are now completely invisible to the user. Whenever our team hears of or discovers a new upgrade, or a system issue, or just a simple usability enhancement, iMagic OS will automatically install it without hassling you with dialogs or taskbar notices, and without waiting until you are shut down your computer to stall, saving you time and work.

Some things should be illegal. *eyeroll*

See the company's post about it here.

11Sep/090

Sept 11

We all know what happened eight years ago.

Well, try to have a nice day anyway.

Filed under: Uncategorized No Comments
   

Categories

Dreamhost (♥ web hosting)

Tag Cloud

Recent Comments

Archives

Ad

Your Ad Here
This link kills spam