Thread: w3c validation?
View Single Post
  #13   Spotlight this post!  
Unread 01-09-2003, 18:44
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by jonathan lall
In the future (namely when version 2.0 is recommended), XHTML will introduce concepts not found in HTML, which is not going to be updated anymore. Name was not replaced by id. They serve the same function in HTML 4 and XHTML 1, and both are valid. Id is for any element, whereas name isn't supposed to be. Id is used alongside class in CSS1 core to identify elements (like #textarea {color: red;}). or spots in a webpage (see the link that says post #12 in the top right corner of my post?).

I write in HTML 4 and XHTML, depending on the site. Just like how many think that validating makes their code 'better', I think a lot of people use XHTML just because it's new and they think they are somehow writing better code. Really though, the X doesn't make you 1337
According to the W3 Validator, the id attribute is required, and does replace the name attribute (XHTML only, NOT HTML, and I'm not saying also for HTML!). id isn't just for (if it all) CSS (at least 2 from what I've been reading).

I write in both also, doesn't mean I'm using XHTML just because it's "new". I use XHTML more than HTML because I prefer to code the XHTML way. XHTML is also easier to read XML data IMHO (since the X means that same in both XHTML and XML). If someone wants to use HTML, let them. If someone wants to use XHTML, let them. I don't see how you can judge people that they use XHTML because it's new. That's like saying everyone is using PHP because it's better than ASP, or ColdFusion.

Edit: As Adam said, the W3Schools site link you posted was converted to XHTML. Read why they did it. It's not because it's new either....
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"