473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

html 4.01, xhtml 1.0 or xhtml 1.1

Having tried to move a site from badly written html to standards
compliant html recently, I found myself considering, for the first time,
whether to use html 4.01 strict, xhtml 1.0 strict or xhtml 1.1.

Firstly, it's my understanding that xhtml 1.0 is meant to be a "stepping
stone", which means that it's probably not an ideal candidate.

However, it also seems that xhtml 1.1 has a few issues including:

a) ie 6 and 7 (and possibly 8) doesn't recognise the mimetype
b) w3c gives a validation warning if you serve it up with the wrong mimetype
c) I need to find a way to fix code that currently uses code like
"document.getElementById(<id>).innerHTML = [empty] string" to add or
remove text.

So, the choice is the mature and widely supported html 4.01, a stepping
stone (xhtml 1.0), or the not fully supported xhtml 1.1.

I'm inclined to go for html 4.01 strict, can anyone convince me that
this is the wrong decision at the moment?

Denis McMahon
Jul 19 '08 #1
2 1432
Denis McMahon wrote:
I'm inclined to go for html 4.01 strict, can anyone convince me that
this is the wrong decision at the moment?
Using HTML 4.01 Strict is a good choice, but make sure you always
validate your pages for both HTML and CSS: browsers apply the standards
more strictly with a Strict DOCTYPE, so are less tolerant of coding errors.

Jul 19 '08 #2
Denis McMahon wrote:
I'm inclined to go for html 4.01 strict, can anyone convince me that
this is the wrong decision at the moment?
That is a wise choice.

http://tekrider.net/html/doctype.php

--
-bts
-Friends don't let friends drive Windows
Jul 19 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

87
by: CMAR | last post by:
For xhtml validatin, which is the right metatag to use for English language or can one forget about this tag? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta...
2
by: mike | last post by:
regards: I follow the following steps to converting from HTML to XHTML http://webpageworkshop.co.uk/main/xhtml_converting My parser is http://htmlparser.sourceforge.net/ Xhtml version is 1.0...
47
by: Chuck | last post by:
Is there any logical reason why one should convert if css is already being used? What possible, immediate, benefit would there be? I am at a loss to see what, pragmatic, difference it would make.
20
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
9
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
10
by: git | last post by:
All, I have been working on a system to support the 'tidy' program to help convert html to xhtml. The system is a little complex for me to put together as it involves apache/php/linux and a...
14
by: Stanimir Stamenkov | last post by:
I've found some contradiction I want to resolve. <http://www.w3.org/MarkUp/2004/xhtml-faq#mime11states: I've noted "_disallowed_ text/html" and "_must_ be sent with an XML-related media...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
11
Dormilich
by: Dormilich | last post by:
Lately I have seen so much awful HTML, that I like to show what a HTML document should look like, regarding the requirements from the W3C. the absolute minimum is defined as: or expressed in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.