Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is X/HTML the new standard of HTML or not 4

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
I was on another forum and someone posted
to be perfectly valid by W3C standards, if you are NOT using XML for your pages, HTML 4.01 strict IS the doctype you should be using.

I thought X/HTML was the next version of HTML and not for sites written in XML.

And how do you write a webpage in XML not HTML , i'm confused.

I thought XML was flat file / text data wrapper?

Web page markup up language.

Can someone enlighten me please.

1DMF.


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
yeah thanks, clear as mud!!!!

XHTML is the successor to HTML. As such, many consider XHTML to be the current or latest version of HTML. However, XHTML is a separate recommendation; the W3C continues to recommend the use of XHTML 1.1, XHTML 1.0, and HTML 4.01 for web publishing.

talk about a contradiction in terms from the off.

anyway , I still don't get the comment on if you are not using XML for your pages. HTML 4.01 strict IS the doctype you should be using.

X/HTML is the successor and recommended format for web page markup, and it says X/HTML2.0 will be a new markup language in its own right, no mention of having to use XML or include XML in any content?

it's just a markup based on XML format and error trapping, making agents more light weight and the document having to be welformed.

is that a fair synopsis?


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
[lol] You can name names, I'm a big boy [smile]


You need to read the XHTML specs. especially things like
Strictly Conforming Documents
So by rights to be strictly XHTML compliant you should have the <?xml ... ?> declaration. Which of course promptly screws up Internet Exploder and plays havoc with PHP servers.


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
I wrote an entry about this a long time back:


Here is the bit related to this thread:
Me said:
Unless you are going to be serving your documents as “text/xml” and loading them into an XML parser to allow your XML tools to manipulate the page, then there is no reason to develop your documents as XHTML. A majority of web pages on the internet are HTML - and this should be the default choice for developing your documents - especially if your web host is serving your pages as “text/html”.
Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Hey Chris, I didn't feel it professional or appropriate to say "so and so said this on this forum".

I am not discounting what i read by you or others on that forum, But I do value tek-tippers input very much and have been here for many years now, so always bounce things around here too to get a more rounded and balanced view. the more people , who's opinion/knowledge I trust, that reply to my threads the better!

Thanks Jeff, though it's funny, I'd never heard of X/HTML till I came here and you lot were the ones who kicked me into shape , making me use X/HTML , valid, semantic and standards compliant code, and now i'm being told i'm doing it wrong - lol , oh the irony!

(i even remember the question what started it all, someone had posted some code and it had <br /> , I asked what the hell the slash was all about, and well as they say the rest is history!)

however the comment on the bottom of that write up I will have to agree with (stops me feeling so bad too!)
Nice writeup.
However, I would say that even if your host isn’t serving pages as “text/xml” right now they may in future.
To that end, and by the same token as it’s prudent to use a strict doctype when starting a brand new project, I would say that it’s sensible to develop in XHTML rather than HTML.
Additionally, XHTML promotes much neater coding.

Maybe I’m wrong… dunno… personal feeling.



"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Who said that? :)

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
was it you foamy ? might have know!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
I had to shut down the whole comments thing on that blog -- too many people trying to add their own link-spam for casinos and the like.

I'm planning to upgrade to WordPress 2 and reanimate the blog with more ramblings that I've been saving up over the past 18 months or so - so watch this space [smile]

I agree with Foamy's comment and tend to code in XHTML (even though the sites I work on may not be using text/xml)... expecting that eventually the various sites will upgrade (the only difficulty I had trying to maintain XHTML Strict was when I needed to use a client-side imagemap).

Back to work!
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
I had to shut down the whole comments thing on that blog -- too many people trying to add their own link-spam for casinos and the like

Yeah, my income has taken a dive you git!
;-)


Day off... no work! Well not for my employer anyhow.
w00t!

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
I can't help with your dubious activities, but will a star help?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top