You don't always have to close your HTML tags

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post June 27th, 2009, 4:07 pm

Google doesn't, so why should you?

Quote:
For example, according to the HTML4 DTD — you can omit tags like <body> and </tr> and all sorts of optional tags that browsers have to cope without.


This is, of course, for HTML, not XHTML.

http://blog.bug.gd/2009/06/27/the-highe ... html-tags/
The Beer Monocle. Classy.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 27th, 2009, 4:07 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post June 28th, 2009, 4:33 am

I suppose my question is who uses HTML? I can't recall the last time I purposely hand coded a page not using XHTML.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post June 28th, 2009, 7:20 am

spork wrote:
Google doesn't, so why should you?

One, because we're not Google, and two, because those few extra bytes don't really matter today.
No Strings Attached: A JavaScript graphics demo.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post June 28th, 2009, 1:31 pm

It looks like Google already dropped the ball with the PHP recommendations, I'm a little leary about the others.
Strong with this one, the sudo is.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 28th, 2009, 3:29 pm

Looks like that's not the only point that others are a little ruffled about. Check this blog post.
I'd love to change the world, but they won't give me the source code.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post June 29th, 2009, 11:59 am

lol all of that is interesting. Google seems like a big company and I'm surprised they made those mistakes... maybe (like the article linked to by UPS) they thought PHP was similar to C.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 151 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.