Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xHTML vs HTML 1

Status
Not open for further replies.

y2k1981

Programmer
Aug 2, 2002
773
IE
Why would somebody want to choose xHTML over HTML, is it just because xHTML will eventually replace HTML, or are there other reasons?
 
Your title is "XHTML vs HTML", so I'll just give you a link to the W3 page with the same title:


I personally have been using XHTML for a while now. I like it because it's so much better, especially if there are multiple people working on the same page. There are set rules that must be followed, unlike HTML where anything will do.

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
Reference Guides
 
Correct. I use XHTML now exclusively whenever possible, the code is a lot easier to read and maintain if done properly.

All layout should be done using CSS positioning and formatting of <div>s and <span>s, get rid of those hated tables and frames!
 
Um, let's not start bashing things yet....CSS is nice, but I still use tables (with css). I'm not going to get into a debate over this yet, but I don't think that the web is developed enough yet to support css only sites, without tables. Please show me some sample urls, and I bet I will be able to make most of those sites &quot;break&quot;.

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
Reference Guides
 
y2k1981: Why would somebody want to choose xHTML over HTML, is it just because xHTML will eventually replace HTML, or are there other reasons?

You know, you could reverse the question: Why use HTML when the combination of XHTML and styles provide for the vast majority of user needs?

Then, the answer becomes obvious: you use HTML when you believe that there is something you must do that isn't do-able using a combination of HTML and CSS, or some other tool.

I'm pretty happy with the direction things are going with XHTML and CSS, so I tend to code toward that and I haven't yet run across anything that wasn't somehow possible. But, as Rick pointed out, there are still a few folks with browsers that won't fully support CSS.

So, what to do?

I code for XHTML+CSS, but I also code with an eye toward older browsers. I run an early version of Netscape (4.7) just so that I know what the site'll look like in an older browser. Sometimes, I find ways to fit everything in very pretty. Sometimes I decide &quot;Well, it's not worth it to make this look beautiful for Netscape 4.7 -- it's functional (and functional in Lynx!), so I'll settle for that&quot;.

But see, most everything I code, I code as simply as possible because I'm a stickler for accessibility. I've coded sights for blind readers and this is very important for me. So it's easy to avoid all the doodads and geegaws because my blind readers can't see 'em anyway and it doesn't feel right building a site that excludes blind people.

Cheers,



[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
&quot;I've coded sights for blind readers&quot;

Aren't sights rather wasted on the blind? I'd concentrate on sites if I was you...

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Aw man...

By &quot;coded sights&quot;, I mean I've digitized images. heh.

It's funny. I obviously was thinking &quot;sight&quot; when I typed it. Whee! Got the blind on my mind.

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Ed's next trick... to code food for the hungry :)

A star for being a good sport
 
Yeah, I'd want to code food for the hungry, health for the sick, sleep for the tired, sight for the blind, and peace for the conflicted.

But I'll code no rest for the wicked.

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
well, be sure to get back to me when you code the sleep for the tired ... I can never seem to get enough of that !!

thanks everybody for your replies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top