XHTML, Page 2
XHTML: Good or Bad?
I guess, once again, that depends on who you talk to. The W3C says the two main selling points are "extensibility and portability". I'll add "standardization" to that.
- Extensibility: XHTML is extendable. You can create your own tags and add onto it.
- Portability: Those new tags are done in such a way that all can understand it. (See the tutorial).
- Standardization: Now we have a true template for what is and is not acceptable coding. Everyone must follow that template.
On the other side of the coin, I see a couple of problems.
- XHTML is not as easy to just play around with on the weekend as HTML. HTML is a sort of computer tinker toy that everyone can use. People might lose interest being held to such a rigid set of rules. But you can still write your HTML document just as you always did. The XHTML DTD contains HTML. You just need to use an HTML declaration statement at the top of the document.
- XHTML, and XML for that matter, go directly against the rules the W3C laid down for Web content and authoring tools accessible to disabled users.
I guess it's that first concern that worries me the most. I just don't want HTML to become a ghost hiding behind a language that the average Joe can't pick up. I wouldn't want those who run the coding show to "take back" programming on the Web by making it too difficult. I just hate the thought of that.
I took this example straight from the W3C's XHTML 1.0 page:
As you can see, the coding is very strict and maybe a little complicated for the HTML enthusiast. The language is available right now if you want to try it out. I would suggest using an Internet Explorer 5.0 level browser. Follow the rules laid out in this tutorial and the XML custom tags tutorial. Write slowly and deliberately. HTML was forgiving. XHTML is not. You may want to read a bit more and look at some XHTML source codes by visiting the Yahoo! XHTML Page. Many of the pages offering help are actually written in XHTML. Once you're finished writing, use the W3C Validator Service to check your work. I don't see HTML ever going the way of the dinosaur, but I do expect to see it becoming more and more rigid under the XML umbrella. It's only a matter of time before all major search engines and server systems choose XML for database programming. HTML will need to start working under their choices. Thanks to XHTML, you'll be able to continue writing in the HTML you've come to know and love. You just may need to clean it up a bit. My guess is that XHTML 2.0 will specifically clean up HTML tags and their usage. Enjoy!
An Example
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
<head>
<title>Virtual Library</title>
</head>
<body>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
</body>
</html>
