What are the pluses and minuses of constructing and validating between
XHTML Transitional vs. HTLM 4.01 Strict
Thanks, CMA 25 4586
On Fri, 23 Jul 2004 17:10:46 GMT, CMAR <cm***@yahoo.co m> wrote: What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict
Thanks, CMA
If you use XML tools to build the page, XHTML is worthwhile if you can
serve it properly (which includes accounting for that set of browsers
which cannot handle properly-served XHTML).
Otherwise, there is no benefit I'm aware of.
CMAR wrote: What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict
Your comparing different variants of different languages. Let's
separate them.
transitional v. strict
----------------------
transitional is meant to east the transition (get it?) from HTML 3.2
pseudo desktop publishing markup to a more SGML semantic markup. There
is very little presentational aid in strict, so you'll be relying on
CSS almost exclusively for the layout/colors. I think that's an
advantage. CSS gives you more options, and is more efficient. It is
also a depressing experiment in browser bugs, so brace yourself.
winner? strict
XHTML v HTML
------------
XHTML is a reformulation of HTML as an XML application. Lots of people
think it's superior because it came after HTML 4, and is thus the
newest standard. But they don't have any reason to use it other than
"it's the latest".
XHTML offers no advantages over HTML in terms of markup. There are no
additional elements, no radically different constructs. Nonetheless,
it supposed to be served with a different MIME type. HTML is
text/html, whereas XHTML is application/xhtml+xml. The problem is that
MSIE does not understand this new MIME type. So servers send it with
text/html. That leads to its own problems: http://www.hixie.ch/advocacy/xhtml
Since it offers no benefits, but does have drawbacks, the answer seems
obvious, unless you have specific reasons for needing XHTML.
winner? HTML
In short, use HTML 4.01/strict.
HTH
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
Brian wrote: Your comparing different variants of different languages.
Jeez Louise. My sister just misused "your" instead of "you're" in an
email to me, and apparently it's contagious. That should be "You're
comparing...." (Sure, it's pathetic to blame someone else for my
screwups, but that one is too embarassing to take the fall by myself.)
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
Brian wrote: Brian wrote:
Your comparing different variants of different languages.
Jeez Louise. My sister just misused "your" instead of "you're" in an email to me, and apparently it's contagious. That should be "You're comparing...." (Sure, it's pathetic to blame someone else for my screwups, but that one is too embarassing to take the fall by myself.)
People also ought to attempt to spell "HTML" correctly when posting to
an HTML newsgroup, shouldn't they?
--
Dan
"CMAR" <cm***@yahoo.co m> wrote in news:qEbMc.5675 8$yd5.32501
@twister.nyroc. rr.com:
in theory, web browsers can handle xhtml specifics - self closing tags for
instance, but that, as always is up to the software houses to sort.
The advantage of xhtml is the better structure you're forced to, with a far
stricter ruleset for how all the tags have to be written. xhtml 2, just
released in draft, goes somewhat further with some important tag changes;
this is, of course the rub. You still find pages out there that are written
in html 2, but they look dreadful. Keeping up with the current standards,
as xhtml is (html 4 has been around about as long as M$ NT4, at M$ have
stopped support for that now) is important.
In the end, validating xhtml is tougher, but you end up with a better
formatted document. What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict
Thanks, CMA
Daniel R. Tobias wrote: Brian wrote:
That should be "You're comparing...."
People also ought to attempt to spell "HTML" correctly when posting to an HTML newsgroup, shouldn't they?
Uh, I'll take what's coming to me for mixing up "your" and "you're",
but I'm afraid the op is on the hook for transposing the letters in
the subject, so take it up with him.
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
> "CMAR" <cm***@yahoo.co m> wrote What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict
s_m_b wrote:
in theory, web browsers can handle xhtml specifics - self closing tags for instance, but that, as always is up to the software houses to sort.
Theory does not match reality. The most popular software used to
browse web pages, MSIE/Win cannot handle xhtml when served up properly. http://www.hixie.ch/advocacy/xhtml
The advantage of xhtml is the better structure you're forced to, with a far stricter ruleset for how all the tags have to be written.
If you want stricter syntax (e.g., explicitly closed p and li
elements), then just close them. That's no reason to choose XHTML.
xhtml 2, just released in draft, goes somewhat further with some important tag changes;
Since it breaks backward compatability, it's hard to see what
advantages it has as an authoing language.
Keeping up with the current standards, as xhtml is (html 4 has been around about as long as M$ NT4, at M$ have stopped support for that now) is important.
One should not decide on XHTML simply because it's new. If there isn't
a reason, then HTML is the way to go.
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
In article <10************ *@corp.supernew s.com>,
Brian <us*****@juliet remblay.com.inv alid> wrote: s_m_b wrote:
in theory, web browsers can handle xhtml specifics - self closing tags for instance, but that, as always is up to the software houses to sort.
Theory does not match reality. The most popular software used to browse web pages, MSIE/Win cannot handle xhtml when served up properly.
http://www.hixie.ch/advocacy/xhtml
If ound it somehow disturbing that it does not talk about a future
transition to 'real' XHTML of ones markup. It costs authors little
trouble of writing XHTML right now and serving it as HTML tagsoup
because current browser limitations enforces that.
One of the caveats being that authors could be easily thinking that they
produce documents that can be served as application/xhtml+xml anytime of
their choosing without a problem. Often, a document is not well-formed
from the start or it loses well-formedness over time because of updates
to it's content. Also, scripts embedded or attached to the document are
often not good enough to continue function in browsers when the switch
to real XHTML is made. The advantage of xhtml is the better structure you're forced to, with a far stricter ruleset for how all the tags have to be written.
If you want stricter syntax (e.g., explicitly closed p and li elements), then just close them. That's no reason to choose XHTML.
Choosing for the Strict version of HTML4.01 or XHTML1.0 would make a
bigger difference than choosing between HTML4.01 or XHTML1.0. Strict is
the magic to better strictness and that should be self-evident by it's
name.
If authors serve their XHTML as text/html, which in return makes UAs
interpret it as HTML tagsoup, there is no 'forced to more strictness',
because the author does not get penalized with an XML parsing error for
making a mistake when checking the page. Keeping up with the current standards, as xhtml is (html 4 has been around about as long as M$ NT4, at M$ have stopped support for that now) is important.
One should not decide on XHTML simply because it's new. If there isn't a reason, then HTML is the way to go.
No comment on that. Found it important to have it quoted here for anyone
who is considering using XHTML.
--
Kris
<kr*******@xs4a ll.netherlands> (nl)
On Sat, 24 Jul 2004 11:00:36 +0200, Kris
<kr*******@xs4a ll.netherlands> wrote: In article <10************ *@corp.supernew s.com>, Brian <us*****@juliet remblay.com.inv alid> wrote:
s_m_b wrote:
> in theory, web browsers can handle xhtml specifics - self closing tags for > instance, but that, as always is up to the software houses to sort. Theory does not match reality. The most popular software used to browse web pages, MSIE/Win cannot handle xhtml when served up properly.
http://www.hixie.ch/advocacy/xhtml
If ound it somehow disturbing that it does not talk about a future transition to 'real' XHTML of ones markup.
That's because it's trivial to convert valid HTML 4.01 to XHTML, no
trouble at all, in fact it's a lot easier than authoring XHTML
straight than follows the observations of Appendix C.
If authors serve their XHTML as text/html, which in return makes UAs interpret it as HTML tagsoup, there is no 'forced to more strictness', because the author does not get penalized with an XML parsing error for making a mistake when checking the page.
It's the user that is penalised in the above scenario, not the author.
XML WF constraints should not exist on user focused languages.
Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CMAR |
last post by:
What are the pluses and minuses of constructing and validating between
XHTML Transitional vs. HTLM 4.01 Strict
Thanks, CMA
|
by: Radu |
last post by:
Hi. I have been working at home on a web project (VSNET 2005 SP1). Now
I have brought the project at work, and I suddenly have plenty of
warnings like:
Validation (XHTML 1.0 Transitional) - Attribute..... is not a valid
attribute of.....
Validation (XHTML 1.0 Transitional) - Attribute..... is considered
outdated. A newer construct is recommended.
Validation (XHTML 1.0 Transitional) - Attribute values must be enclosed
in quotation marks.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |