473,386 Members | 1,886 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,386 software developers and data experts.

On Migrating From HTML 4.0 to XHTML 1.0

So I have a non trivial ASP.NET 1.1 Web Application with custom controls
emitting HTML markup and good deal of static HTML in the aspx pages.

I'm wanting to make this thing fully XHTML 1.0 compliant.

My primary question is this: Can I reasonably migrate from HTML 4.0 to XHTML
1.0 *incrementally*??? Or would everything totally break.

To clarify, I want to put different pieces into production at different
times (for a bunch of logistical reasons). If I do this, then I'd have
rendered pages sent to the browser with a mix of HTML 4.x and XHTML
1.0-compliant markup.

My secondary question is this: What do I use for the DTD when I have this
mix going on?

Alternatively, is it such an incredibly terrible thing to migrate from HTML
4.0 to XHTML 1.0 incrementally - and I'd really really really be better off
migrating all in one shot?

Thanks for your time and consideration!
Apr 4 '06 #1
8 1436
On Tue, 4 Apr 2006 16:33:16 -0700, Fred Mertz wrote:
My primary question is this: Can I reasonably migrate from HTML 4.0 to XHTML
1.0 *incrementally*??? Or would everything totally break.
Each web page is an entity of itself, for the most part. That means you
can change one page at a time without much trouble in most cases.

How much work that is, depends on how much of your HTML needs to change.
For example, if you use a ton of font tags, then you're going to have some
work ahead of you.

If you already use CSS for most of your styling and aren't using any
deprectated features, and are already using all lower case tags, then it
might be a matter of making sure all your tags are closed (including unary
tags like <br/>) and a little touch up.

Of course there are lots of mitigating factors as well, and you have to be
using ASP.NET 2.0 to get XHTML compliant output.
To clarify, I want to put different pieces into production at different
times (for a bunch of logistical reasons). If I do this, then I'd have
rendered pages sent to the browser with a mix of HTML 4.x and XHTML
1.0-compliant markup.
If by "mix" you mean in the same page, then that could be bad (maybe), but
if you mean one page might be XHTML and another HTML, then that's fine.
My secondary question is this: What do I use for the DTD when I have this
mix going on?


You mean DOCTYPE? If so, then you use an XHTML doctype for XHTML pages,
and HTML doctype for HTML pages.
Apr 5 '06 #2
Fred Mertz wrote:
I'm wanting to make this thing fully XHTML 1.0 compliant.


Do you have a good reason for wanting to use XHTML?

http://www.spartanicus.utvinternet.ie/no-xhtml.htm
Apr 5 '06 #3
I read the article at your link, and... Good grief = this is insane. They
come out with a new standard and there are apparently a bunch of problems
with using it. Yes - it all makes sense; but what are we supposed to do?
Apparently the "logical" answer is to WAIT until the browsers come up to
speed. Yes?

What do you recommend? WHEN would it make sense, if ever, to migrate to
anything other than HTML 4.01?

-FM

"Nik Coughlin" <nr******@gmail.com> wrote in message
news:44********@clear.net.nz...
Fred Mertz wrote:
I'm wanting to make this thing fully XHTML 1.0 compliant.


Do you have a good reason for wanting to use XHTML?

http://www.spartanicus.utvinternet.ie/no-xhtml.htm

Apr 5 '06 #4
My "incremental" upgrade path would result in the mix of XHTML with HTML on
the same page...

-FM
"Erik Funkenbusch" <er**@despam-funkenbusch.com> wrote in message
news:pe**************@funkenbusch.com...
On Tue, 4 Apr 2006 16:33:16 -0700, Fred Mertz wrote:
My primary question is this: Can I reasonably migrate from HTML 4.0 to
XHTML
1.0 *incrementally*??? Or would everything totally break.


Each web page is an entity of itself, for the most part. That means you
can change one page at a time without much trouble in most cases.

How much work that is, depends on how much of your HTML needs to change.
For example, if you use a ton of font tags, then you're going to have some
work ahead of you.

If you already use CSS for most of your styling and aren't using any
deprectated features, and are already using all lower case tags, then it
might be a matter of making sure all your tags are closed (including unary
tags like <br/>) and a little touch up.

Of course there are lots of mitigating factors as well, and you have to be
using ASP.NET 2.0 to get XHTML compliant output.
To clarify, I want to put different pieces into production at different
times (for a bunch of logistical reasons). If I do this, then I'd have
rendered pages sent to the browser with a mix of HTML 4.x and XHTML
1.0-compliant markup.


If by "mix" you mean in the same page, then that could be bad (maybe), but
if you mean one page might be XHTML and another HTML, then that's fine.
My secondary question is this: What do I use for the DTD when I have this
mix going on?


You mean DOCTYPE? If so, then you use an XHTML doctype for XHTML pages,
and HTML doctype for HTML pages.

Apr 5 '06 #5
On Wed, 5 Apr 2006 00:18:29 -0700, Fred Mertz wrote:
My "incremental" upgrade path would result in the mix of XHTML with HTML on
the same page...


Then you need to be more careful. xhtml is essentially a subset of HTML.
That means you can create xhtml pages that conform to HTML. So, as long as
the pages contain some HTML you continue to use an HTML doctype.
Apr 5 '06 #6
On Wed, 5 Apr 2006 16:07:02 +1200, Nik Coughlin wrote:
Fred Mertz wrote:
I'm wanting to make this thing fully XHTML 1.0 compliant.


Do you have a good reason for wanting to use XHTML?

http://www.spartanicus.utvinternet.ie/no-xhtml.htm


One argument the author ignores is validation. XHTML validation is
stricter than HTML validation, which means that you can validate your code
against an XHTML validator to ensure better markup. I agree with many of
his points, though. I just don't agree that XHTML is pointless.
Apr 5 '06 #7
On Wed, 5 Apr 2006 00:17:46 -0700, Fred Mertz wrote:
What do you recommend? WHEN would it make sense, if ever, to migrate to
anything other than HTML 4.01?


As i said in another message, XHTML is basically a subset of HTML. Nothing
is stopping you from writing code that conforms to the XHTML subset with an
HTML doctype.
Apr 5 '06 #8
Thank you Erik for all of your helpful responses.
Apr 5 '06 #9

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.
1
by: Mark | last post by:
(I'm new to these groups, so I'm not sure which one to use ...) XHTML has been emabled in virtually all modern browsers. So is there any more need for the space before the closing tags in empty...
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>
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.