You are here: Re: what is better strict or xhtml? « HTML « IT news, forums, messages
Re: what is better strict or xhtml?

Posted by Andy Dingley on 10/05/88 11:19

On Wed, 22 Jun 2005 10:22:57 +1200, "windandwaves"
<winandwaves@coldmail.com> wrote:

>What is the most professional standard for creating webpages:

Why lower yourself to the standards of most professionals ? 8-)


>I have been using strict for my websites, but it seems fashionable to go for
>xhtml.

First of all, there are four choices here, not two. Or more plainly, a
choice of HTML 4.01 / XHTML 1.0 _and_ a separate choice of Strict /
Transitional.

Most useful of all is simply to be valid as _something_. Pick one
randomly, but at least achieve it. The biggest benefits are from this,
not which one you pick.

Second biggest benefit is in using a doctype that puts IE into
standards-based rendering, not quirks mode.


XHTML needs to be served as text/html to get anywhere useful on the
existing web (Appendix C etc.) So this also means that some useful XML
features of it, such as namespacing, aren't viable at present. If
you're into SMIL, SVG or RDF metadata, then you might find it acceptable
to serve your XHTML properly as XML, even though that somewhat limits
your audience.

XHTML is useful internally because it allows XML tools within your CMS.
It's also useful to have XML output, because that allows your output to
be an input to some other CMS task. It's also a good long-term idea to
start having your content as cleanly well-formed XML

Transitional is useful because it allows the <a target="..." >
attribute. Some will disagree as to its value, but if you want it,
that's how you get it.

Strict is not particularly useful. It's no magic bullet to make your
markup beautiful. You can still write garbage in Strict. What's useful
is the _attitude_ to using Strict - i.e. dumping <font> and you can
achieve that equally well by marking up sensibly and still labelling it
with a Transitional doctype.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация