Is there a list of the changes you need to make to HTML 4.1 cose to
make it dual compliant, with XHTML 1.1 also?
Jul 20 '05
13 2923
I wrote: You must also avoid empty elements (e.g., LINK, IMG) that cannot be represented in a way that is valid for both HTML and XHTML.
Owen Jacobson <oj************ **@mx-deus.net> wrote: Oof. I missed that completely. Yeah, that's a big issue. For my own information, is the following valid in XHTML 1.0? In HTML 4.01?
<link rel="stylesheet " href="pagestyle " type="text/css"></link>
In HTML, the closing </link> is invalid. You're trying to close a LINK
element that isn't open.
In XHTML, your example is valid, and is equivalent to
<link rel="stylesheet " href="pagestyle " type="text/css" />
(which is what Appendix C recommends).
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/
"I used to do lots of dumb things, but I turned my life around 360 degrees!"
In article <bj**********@b lue.rahul.net> in
comp.infosystem s. www.authoring.html, Darin McGrew
<mc****@stanfor dalumni.org> wrote: Owen Jacobson <oj************ **@mx-deus.net> wrote: Oof. I missed that completely. Yeah, that's a big issue. For my own information, is the following valid in XHTML 1.0? In HTML 4.01?
<link rel="stylesheet " href="pagestyle " type="text/css"></link> In HTML, the closing </link> is invalid. You're trying to close a LINK element that isn't open.
In XHTML, your example is valid, and is equivalent to <link rel="stylesheet " href="pagestyle " type="text/css" /> (which is what Appendix C recommends).
Now I'm confused. (This seems to be happening a lot lately.) I
understand that </link> is no valid HTML. But I thought the whole
point of Appendix C was to write markup that was valid HTML and
valid XHTML. The very first sentence of Appendix C is "This appendix
summarizes design guidelines for authors who wish their XHTML
documents to render on existing HTML user agents." True, that
doesn't say that the XHTML is valid HTML, but I thought that was
implied.
Are you saying that <link rel="stylesheet " href="pagestyle " type="text/css" />
is _not_ valid HTML?
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Stan Brown <th************ @fastmail.fm> exclaimed in <MP************ ************@ne ws.odyssey.net> : understand that </link> is no valid HTML. But I thought the whole point of Appendix C was to write markup that was valid HTML and valid XHTML. The very first sentence of Appendix C is "This appendix summarizes design guidelines for authors who wish their XHTML documents to render on existing HTML user agents." True, that doesn't say that the XHTML is valid HTML, but I thought that was implied.
The keyword is "render". The implication is rather "Let's write XHTML
in such a way that tag-soup eating browsers will simply view this as
another addition to the menu and render away".
Usual caveats apply.
--
- Tina Holmboe Greytower Technologies ti**@greytower. net http://www.greytower.net/
[+46] 0708 557 905
Stan Brown <th************ @fastmail.fm> wrote: But I thought the whole point of Appendix C was to write markup that was valid HTML and valid XHTML.
It might give that impression, perhaps intentionally.
The very first sentence of Appendix C is "This appendix summarizes design guidelines for authors who wish their XHTML documents to render on existing HTML user agents." True, that doesn't say that the XHTML is valid HTML, but I thought that was implied.
And maybe we were supposed to think that way. I know this is somewhat
negative thinking. But the XHTML specification really seems to avoid the
issue that XHTML and HTML are not compatible _at the level of
specifications_ , even if (almost all) browsers can be fooled to eat XHTML
when they actually digest HTML.
Are you saying that <link rel="stylesheet " href="pagestyle " type="text/css" /> is _not_ valid HTML?
In a document with an HTML doctype, it makes the document invalid
except in a special case. The reason is that the construct is, by HTML
rules, equivalent to
<link rel="stylesheet " href="pagestyle " type="text/css">>
and data characters are not allowed inside a <head> element, so the data
character ">" would imply </head> and <body>. So if the rest is the
document body without a <body> tag, the document is valid (though its
content is probably not what the author meant, and this in turn is negated
by the fact that browsers don't actually play by HTML rules here).
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 4.01 Standard:
http://www.sonoptikon.de/kairos/kontakt.php
The crucial lines are:
-------------------
<table cellpadding=4 cellspacing=1 width="100%">
|
by: mojo |
last post by:
Is there a nice way to have HTML display mathematical expressions
that contain radical symbols (square root, cube root, ..., nth root)
that look nice.
The best I can come up with is by having a table, a CSS border, the
radical sign:
<TABLE>
<TR>
<TD>&radic</TD><TD style="border-top: 1pt solid black;">103</TD>
</TR>
|
by: Armand Karlsen |
last post by:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01
Transitional and CSS compliant, and I'm thinking of converting it into XHTML
to learn a little about it. Which XHTML variant would you recommend? The w3c
HTML validator mentions XHTML 1.0 Transitional, Basic, Strict, and XHTML
1.1. Would I be able to make my existing CSS work in the XHTML page without
modification to the .css file?
|
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 from http://nds.nokia.com/uaprof/N6600r100.xml
but nokia mobile browser cannot identify the converted file(XHTML1.0).
Is there something wrong with my procedure.
|
by: Eric Lindsay |
last post by:
I have been trying to get a better understanding of simple HTML, but I
am finding conflicting information is very common. Not only that, even
in what seemed elementary and without any possibility of getting wrong
it seems I am on very shaky ground .
For example, pretty much every book and web course on html that I have
read tells me I must include <html>, <head> and <body> tag pairs.
I have always done that, and never questioned it. ...
| |
by: danny.rendle |
last post by:
I am attempting to create a web site using ASP.NET v1.1 to comply with
the W3C's WAI Triple-A standard.
To this end I need ASP.NET to emit valid HTML 4.01 Transitional (once
confident with ASP.NET and HTML 4.01 I plan to move onto XHTML).
I have found several articles suggesting the use of Response Filters to
amend the HTML on route to the client which are very usefull for adding
a container for the ViewState and removing the Form's...
|
by: VK |
last post by:
Hi,
After the response on my request from W3C I'm still unclear about Tidy
vs. Validator discrepansies. That started with <IFRAME> issue, but
there is more as I know. Anyway, this very basic HTML page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html401/strict.dtd">
<html>
<head>
|
by: graham.reeds |
last post by:
I am building a reports system. Several events can happen in the space
of an hour so over a long weekend there can be quite a lot of events
(hundreds). Therefore sending everything as a single xml file will
take a long time. Also sending one report at a time would take a long
time for the roundtrip.
What I was going to do was batch up a number of events (say 10) and
then make a request for the next 10. Simple tests show that the first...
|
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
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |