Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Is xhtml coding backwards compatible with an HTML 4.01 document?
Old 03-16-2009, 09:02 PM Is xhtml coding backwards compatible with an HTML 4.01 document?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,186
Trades: 0
Somebody wants me to create a web page with a DOC Type of HTML 4.01

I've only ever coded using "xhtml transitional" coding tags. Xhtml is of course a stricter standard. Tags need to be lower case, opening tags and closing tags matched etc.

In xhtml non-balanced tags like break and image tags need the trailing backslash ie. <br /> ,<img ..../>
But in HTML these are not necessary (unacceptable??).

What i was wondering is if the xhtml coding will fail or cause validation problems in a HTML 4.01 document.

Last edited by TWD; 03-16-2009 at 09:06 PM..
TWD is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2009, 11:23 PM Re: Is xhtml coding backwards compatible with an HTML 4.01 document?
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Yes, but its best to "code" in XHTML 1.0 and prepare for HTML 5.
http://whatwg.org - HTML 5 Working Group
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 03-17-2009, 05:33 AM Re: Is xhtml coding backwards compatible with an HTML 4.01 document?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML5 is AT LEAST 10 years away from being a almost usable standard, and if it progresses at the same rate as CSS2 has done with browser compliance, probably nearer 20 years.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2009, 09:24 AM Re: Is xhtml coding backwards compatible with an HTML 4.01 document?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
In xhtml non-balanced tags like break and image tags need the trailing backslash ie. <br /> ,<img ..../>
But in HTML these are not necessary (unacceptable??).
So, use HTML 4.01 STRICT. Validation is not the end-all, it is a TOOL. It's not going to make any real difference if the validator complains about XHTML's closing tags, as long as your code is correct in the first place.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is xhtml coding backwards compatible with an HTML 4.01 document?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.75945 seconds with 12 queries