You don't always have to close your HTML tags

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

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/
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

I suppose my question is who uses HTML? I can't recall the last time I purposely hand coded a page not using XHTML.
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

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.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

It looks like Google already dropped the ball with the PHP recommendations, I'm a little leary about the others.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Looks like that's not the only point that others are a little ruffled about. Check this blog post.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 46 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.