Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > XHTML Declarations

Reply
Thread Tools

XHTML Declarations

 
 
Web Developer
Guest
Posts: n/a
 
      07-21-2003
Hi,

I'm not sure if this is the right place to talk about XHTML but here goes.
There seems to two types of document declarations for XHTML: one that
contains a strict DTD and the other transitional.

My question: do you save the transitional ones with .htrml or .xhtml
extension? I'm guessing only .html as transitional would not validate with a
strict DTD. Why? I assume xhtml with strict DTD only contains structural
markup.

Any comments appreciated.


Regards
WD



 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      07-21-2003
Web Developer wrote:

> I'm not sure if this is the right place to talk about XHTML but here goes.
> There seems to two types of document declarations for XHTML: one that
> contains a strict DTD and the other transitional.


Actually, there are rather more then that.

> My question: do you save the transitional ones with .htrml or .xhtml
> extension?


The file extension is irrelevent, only the content type counts.

Any varient of XHTML should be served as application/xml+html, some may be
served as text/html. Internet Explorer doesn't understand XHTML though, so
it has to be told its text/html before it can render it.

> I assume xhtml with strict DTD only contains structural markup.


Pretty much.

You should avoid Transitional anyway.

--
David Dorward http://david.us-lot.org/
 
Reply With Quote
 
 
 
 
Web Developer
Guest
Posts: n/a
 
      07-21-2003

> Web Developer wrote:
>
> > I'm not sure if this is the right place to talk about XHTML but here

goes.
> > There seems to two types of document declarations for XHTML: one that
> > contains a strict DTD and the other transitional.

>
> Actually, there are rather more then that.


like?

> > My question: do you save the transitional ones with .htrml or .xhtml
> > extension?

>
> The file extension is irrelevent, only the content type counts.
>
> Any varient of XHTML should be served as application/xml+html, some may be
> served as text/html. Internet Explorer doesn't understand XHTML though, so
> it has to be told its text/html before it can render it.


IE 6.0 service pack 1 seems to understand XHTML.

> > I assume xhtml with strict DTD only contains structural markup.

>
> Pretty much.
>
> You should avoid Transitional anyway.


Disagree. Right now, completely separating structural from presentational
markup can do alot of harm in terms of limiting the number of people who can
view your material. How many browsers do you know can interpret XHTML and
CSS? not many I would imagine. Transitional seems to be the best approach
right now, but this will change in a few years to come.

I just noticed many sites used transitional XHTML and had them saved with
HTML extensions - probably for the reason you had mentioned above.

Thanks anyway.


Regards
WD


 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      07-21-2003
Web Developer wrote:

>> > There seems to two types of document declarations for XHTML: one that
>> > contains a strict DTD and the other transitional.


>> Actually, there are rather more then that.


> like?


frameset, basic, 1.1, ...

> IE 6.0 service pack 1 seems to understand XHTML.


It is served as XHTML? Or is it served as HTML? I've never seen an XHTML in
the whild that is served to MSIE as XHTML. If the latter then it is
treating it as HTML and performing error correction for the variences.
> Disagree. Right now, completely separating structural from presentational
> markup can do alot of harm in terms of limiting the number of people who
> can view your material.


Mainly due to bugs in browsers, learning your way around those bugs isn't
difficult.

> How many browsers do you know can interpret XHTML


Most modern browsers can, with the exception of MSIE.

> and CSS?


Most modern browsers can, but the implementations are buggy.

> not many I would imagine. Transitional seems to be the best
> approach right now, but this will change in a few years to come.


If you are looking for browser support, with presentation, then use HTML
4.01 Transitional.

If you are looking for browser support with sensible seperation of style and
content, use HTML 4.01 Strict.

Only use XHTML if you have some pressing reason to use it.

--
David Dorward http://david.us-lot.org/
 
Reply With Quote
 
Headless
Guest
Posts: n/a
 
      07-21-2003
"Web Developer" <(E-Mail Removed)> wrote:

>IE 6.0 service pack 1 seems to understand XHTML.


Nope: http://www.headless.dna.ie/tech.xhtml


Headless

 
Reply With Quote
 
Isofarro
Guest
Posts: n/a
 
      07-21-2003
Web Developer wrote:

> How many browsers do you know can interpret XHTML
> and CSS?


Meaningfully? All of them.



--
Iso.
FAQs: http://html-faq.com http://alt-html.org http://allmyfaqs.com/
Recommended Hosting: http://www.affordablehost.com/
Web Standards: http://www.webstandards.org/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs XML 0 08-02-2011 05:40 AM
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs C Programming 0 08-01-2011 06:29 AM
convert xhtml to another xhtml using xslt Usha2009 XML 0 12-20-2009 01:13 PM
Should I Convert Site To XHTML or XHTML mobile? chronos3d HTML 9 12-05-2006 04:46 PM
parse URL (href) from xhtml, xhtml -> text, for data hawat.thufir@gmail.com XML 7 02-08-2006 07:39 PM



Advertisments