473,385 Members | 1,673 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.

The XHTML Factor

So, where are we (as an industry) with regards to XHTML? I've been going
through a book published in 2002 that promotes the idea that we should all
be looking to create new projects as compliant with XHTML (at least using
the transitional DTD). Is the XHTML standard something developers at large
are taking seriously? Has Microsoft taken it seriously and included XHTML
compliance features into VS.NET 2003 (will they for the next version)? Are
any of you who work on large mission-critical Web applications making your
pages XHTML compliant? Are there any good reasons to avoid XHTML and instead
stay with HTML 4.01 for new projects, or should we automatically make new
pages XHTML compliant?

Thoughts? Rationalle?

Thanks!
Nov 18 '05 #1
3 1402
Hi Frank,

Visual Studio 2005 will let you create XHTML compliant code. It sounds like
the way to go for new projects.

http://lab.msdn.microsoft.com/librar...03aab55b97.asp

http://lab.msdn.microsoft.com/librar...03aab55b97.asp

Ken

"Frank Thomas" <No@Spam.org> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
So, where are we (as an industry) with regards to XHTML? I've been going
through a book published in 2002 that promotes the idea that we should all
be looking to create new projects as compliant with XHTML (at least using
the transitional DTD). Is the XHTML standard something developers at large
are taking seriously? Has Microsoft taken it seriously and included XHTML
compliance features into VS.NET 2003 (will they for the next version)? Are
any of you who work on large mission-critical Web applications making your
pages XHTML compliant? Are there any good reasons to avoid XHTML and
instead
stay with HTML 4.01 for new projects, or should we automatically make new
pages XHTML compliant?

Thoughts? Rationalle?

Thanks!


Nov 18 '05 #2
Ken do you know if a webcontrols Id still is changed (_ctl_) in .Net 2.0,
thus making it impossible to use Id with CSS.

To Frank:
As your book describes the best way to go is transitional XHTML.

Thanks,
Anders
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Hi Frank,

Visual Studio 2005 will let you create XHTML compliant code. It sounds like the way to go for new projects.

http://lab.msdn.microsoft.com/librar...03aab55b97.asp
http://lab.msdn.microsoft.com/librar...03aab55b97.asp
Ken

"Frank Thomas" <No@Spam.org> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
So, where are we (as an industry) with regards to XHTML? I've been going
through a book published in 2002 that promotes the idea that we should all be looking to create new projects as compliant with XHTML (at least using the transitional DTD). Is the XHTML standard something developers at large are taking seriously? Has Microsoft taken it seriously and included XHTML compliance features into VS.NET 2003 (will they for the next version)? Are any of you who work on large mission-critical Web applications making your pages XHTML compliant? Are there any good reasons to avoid XHTML and
instead
stay with HTML 4.01 for new projects, or should we automatically make new pages XHTML compliant?

Thoughts? Rationalle?

Thanks!

Nov 18 '05 #3


Frank Thomas wrote:
So, where are we (as an industry) with regards to XHTML? I've been going
through a book published in 2002 that promotes the idea that we should all
be looking to create new projects as compliant with XHTML (at least using
the transitional DTD).


Well, XHTML 1.0 has nothing more to offer than HTML 4.01 has, it has
exactly the same elements and attributes with the same semantics as in
HTML 4.01 so you do not gain anything in terms of richer document
structure or richer form controls or better separation of content and
presentation.
And indeed the browser with the most market share, MS Internet Explorer,
doesn't really understand XHTML as XML, instead to have that (and other
browsers like Netscape 4) render your XHTML with the HTML 4.01 semantics
you have to write it according to the HTML backwards compatibility
guides given in
http://www.w3.org/TR/xhtml1/#guidelines
and then serve it as text/html to the browser which in the end means the
browser has to use its HTML tag soup error correcting parser to parse
your XHTML.
If you want to see how XHTML really works you need to send it as
application/xhtml+xml to a browser that understands that, like Opera 7
or Netscape 7 or Mozilla. These browsers use an XML parser to parse
content served as application/xhtml+xml, look for elements in the XHTML
namespace http://www.w3.org/1999/xhtml and render them according to the
defined semantics. But as parsing is done with an XML parser it means
the browser will not render anything but an error message to the browser
user if the source document is not well-formed thus if you look at the
following example
http://home.arcor.de/martin.honnen/j...004071801.html
which is a HTML 4.01 document served as text/html containing two
iframes, one containing a HTML 4.01 document served as text/html with a
deliberate nesting error, and the other iframe containing exactly the
same document but written as XHTML 1.0 and also containing the same
deliberate nesting error, you will see that browsers like Netscape 7,
Mozilla and Opera 7 will still render the HTML 4.01 text/html document
to the reader while there is only a parsing error message presented to
the user for the application/xhtml+xml document.

In my view (and others agreeing with that, see
http://www.hixie.ch/advocacy/xhtml
http://www.hut.fi/u/hsivonen/xhtml-the-point
) there is no point in authoring XHTML if you want to send text/html to
the main browsers, there is with HTML 4.01 a well-defined and powerful
document type (actually there are three variants) for that content type,
you can author your HTML to a specific document type and validate your
documents to it. The most important move people see for document
authoring is to write well-structured documents using the right elements
for their semantics (e.g. a blockquote for a quote and not for any wish
to indent some text) and separate the structure from the presentation,
that can be achieved with HTML 4.01 strict and the use of CSS stylesheets.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 18 '05 #4

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

Similar topics

19
by: R. Rajesh Jeba Anbiah | last post by:
I would like to know what HTML standard will be better for PHP webapplications? Right now, I use HTML 4.01 Transitional. And like to know what *you* PHP programmers prefer? and which is good? TIA....
20
by: John Bokma | last post by:
Hi, I converted most (not all) of my pages at http://johnbokma.com/ to XHTML. I thought this was just a small change from 4.01. However someone stated quite vaguely that my pages are *not*...
32
by: Werner Partner | last post by:
I put this question already, but erhaps it "came under the wheels" because it was hidden in another thread. Nevertheless it's important for me to understand the problem and solve it. Old html...
82
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a...
24
by: Dan Jacobson | last post by:
I shall jump on the XHTML bandwagon. I run my perfectly good html4/strict pages thru $ tidy -asxhtml -utf8 #to get: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
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...
6
by: sonic | last post by:
Ok, i am sure everyone is sick of hearing about this. but i've checked about 10 different posts/sites about this issue, and they all say "use DOM" but i think there is more to be said. Perhaps I...
10
by: Daniel R. Tobias | last post by:
I've happened to look at the source code to a number of Web sites lately, and have noticed a distressing tendency for them to include pseudo-XHTML syntax (e.g., tags ending with "/>") even when the...
15
by: Lennart | last post by:
Hi folks, I have created an animated image gallery in dhtml. It works fine in Internet Explorer. In Firefox, it only works if I ommit the DOCTYPE tag. The page is valid xhtml-strict but with a...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.