in reply to Re^2: PerlMonks has changed me
in thread PerlMonks has changed me
HTML and XHTML are not the same, and every version of HTML is an application of SGML
No. XHTML is eXtensible HTML. That's what it stands for, and it was named that because that's what it is. SGML-based versions of HTML are very much legacy stuff at this point; they're not extensible in the way that XML is and should not be used going forward. update: and when the W3C says "HTML" today, they are almost always talking about XHTML. For instance, if you go to the W3C website and click on "HTML Activity Statement", everything there is about XHTML, not HTML4.
If you find old information that says HTML4 is current and should still be used if XML embedding isn't needed, that dates from the very early XHTML era, before XHTML had fully stabilized, and it is no longer the case. Maintaining old, pre-existing HTML4 is one thing, but for new stuff you will do yourself a big favor in the long run if you write it as XHTML now.
As long as Perl Monks is served up in HTML
Ok, I had somehow missed the fact that Perlmonks is still serving out all of its pages as HTML4. Ugh. I imagine the reason for that probably has to do with the amount of work that would be involved with fixing it, given the complicated implementation of the site. Yes, if Perlmonks pages are served out as HTML4, then it's technically okay to omit closing tags as per the HTML4 spec, on Perlmonks.
As a rule, however, it's a bad habbit of which you should really try to break yourself as soon as possible, for a wide variety of reasons. (I won't here go into all the reasons why XHMTL was and is needed, but the W3C has some information up about that. What they don't say is that XHTML is MUCH easier to maintain than legacy HTML, as well as easier to reliably parse.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PerlMonks has changed me
by tmoertel (Chaplain) on Sep 03, 2005 at 06:21 UTC | |
by jonadab (Parson) on Sep 03, 2005 at 10:22 UTC | |
by tmoertel (Chaplain) on Sep 03, 2005 at 16:00 UTC |