04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

html versus xhtml<br />

280 Chapter 7<br />

Tonight’s talk: <strong>HTML</strong> and X<strong>HTML</strong><br />

ask for your support.<br />

<strong>HTML</strong> X<strong>HTML</strong><br />

I’m certainly glad to have the opportunity to<br />

persuade you to stick <strong>with</strong> me: <strong>HTML</strong> 4.01. I’m<br />

going to be around a long time, have no worries<br />

there. <strong>HTML</strong>, face it, you’re yesterday’s news. The<br />

standards guys have already moved on. I’m<br />

the future. Anyone <strong>with</strong> their head on straight<br />

should be moving to X<strong>HTML</strong>.<br />

There’s really just not enough difference between<br />

you and me for people to really care. I mean, 4.01<br />

is exactly the same as X<strong>HTML</strong> 1.0.<br />

And right now, that and a quarter won’t<br />

even get you a cup of coffee.<br />

That’s the problem: you think everyone wants to<br />

have applications using X<strong>HTML</strong>, or that everyone<br />

is creating Web sites for mobile devices. Some<br />

people just wanna make good Web sites. Why are<br />

you asking them to go through all this pain?<br />

How can you say we’re the same? You’re<br />

<strong>HTML</strong>; I’m XML.<br />

Ah, but just wait. The number of devices that<br />

read X<strong>HTML</strong> is increasing every day. And<br />

there are a lot of applications out there that<br />

are gearing up to use X<strong>HTML</strong>.<br />

Well that’s just it – there really is no pain.<br />

If you’re already using <strong>HTML</strong> 4.01, then<br />

X<strong>HTML</strong> is just a hop, skip, and jump away.<br />

All you have to do is change your DOCTYPE,<br />

and add a couple of attributes to your <br />

element. So, what’s the big deal? Why not have<br />

the latest and greatest <strong>with</strong> just a few minutes<br />

work?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!