[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTML vs XHTML
From: |
David Paleino |
Subject: |
Re: HTML vs XHTML |
Date: |
Sun, 25 Feb 2007 16:30:04 +0100 |
User-agent: |
Mozilla Thunderbird 1.5.0.9 (X11/20061220) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Victor Engmark ha scritto:
> On 2/25/07, *David Paleino* <address@hidden
> <mailto:address@hidden>> wrote:
>
> (bla bla bla about runtime detection of compliance, ...)
>
> 4 lines :D
Yeah, lol :-)
> Besides all the "theorical" questions, I've had some problems. In fact,
> there are some HTML attributes which do not exist in XHTML. For some, I
> just used CSS, but for others, I couldn't find a valid substitute.
> That's why some pages are, actually, hybrid HTML/XHTML. :-(
>
> Huh? XHTML 1.0 and HTML 4.01 are IIRC equivalent. Can you give an example?
The first thing I can remember of (Davi reverted my commit... "unstable
code"... lol, I can't convert the whole webapp all at once! :-D ) is..
tables :-)
HTML:
<table bgcolor="{$webpage->theme->contentBGcolor}" cellpadding="0"
cellspacing="0" rules="none" border="0">
I converted it into XHTML this way:
<table style="background-color:{$webpage->theme->contentBGcolor};border:0;">
Notice that we lost the information provided by cellpadding, cellspacing
and rules. There are no equivalents in CSS, IIRC.
Moreover, look at this sample code (I've found different pieces like this):
<img src="bla.png" width="90" height="120" align="left" alt=""
border="1" hspace="0" vspace="0">
In XHTML it would be:
<img src="bla.png width="90" height="120" align="left" alt="image"
style="border:0;position:relative;left:0;top:0" />
(I don't really remember if "align" is an acceptable attribute of img)
Now, see that I used position:relative, with left and top = 0px instead
of hspace and vspace... is that correct? I'm not sure.
Cheers,
David
P.S.: in my opinion, it would be better using DIVs instead of TABLEs.
But I think it's a lot of work
P.P.S.: I'm stopping my work, as we still have to decide whether to
carry it on.
- --
Linux Registered User #334216
Get FireFox! >> http://snipurl.com/gofoxygo/ <<
Blog >> http://www.hanskalabs.net/ <<
Staff >> http://www.debianizzati.org/ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF4at75qqQFxOSsXQRApE3AKC9UpzOfud7mYheadAFT0LuFjYvXACgiHIs
0kCQ+HUHQCsxC4xjbUnVd64=
=vXhK
-----END PGP SIGNATURE-----
- Proposal: switching from HTML 4.0 to XHTML 1.0 Transitional, David Paleino, 2007/02/21
- Re: Proposal: switching from HTML 4.0 to XHTML 1.0 Transitional, Victor Engmark, 2007/02/21
- Re: Proposal: switching from HTML 4.0 to XHTML 1.0 Transitional, Davi Leal, 2007/02/21
- Re: Proposal: switching from HTML 4.0 to XHTML 1.0 Transitional, Victor Engmark, 2007/02/21
- Re: Proposal: switching from HTML 4.0 to XHTML 1.0 Transitional, David Paleino, 2007/02/21
- HTML vs XHTML, Davi Leal, 2007/02/24
- Re: HTML vs XHTML, Victor Engmark, 2007/02/25
- Re: HTML vs XHTML, David Paleino, 2007/02/25
- Re: HTML vs XHTML, Victor Engmark, 2007/02/25
- Re: HTML vs XHTML,
David Paleino <=
- Re: HTML vs XHTML, Victor Engmark, 2007/02/25
- Re: HTML vs XHTML, Davi Leal, 2007/02/25
- Re: HTML vs XHTML, David Paleino, 2007/02/25
- Re: HTML 4.01 Strict + CSS -- Later XHTML if convenient?, Davi Leal, 2007/02/25
- Re: HTML 4.01 Strict + CSS -- Later XHTML if convenient?, Davi Leal, 2007/02/25
- Re: HTML 4.01 Strict + CSS -- Later XHTML if convenient?, Victor Engmark, 2007/02/25
- Re: The team have XHTML experience, Davi Leal, 2007/02/25
- Re: HTML vs XHTML, MJ Ray, 2007/02/25
- Re: HTML 4.01 Strict + CSS, Davi Leal, 2007/02/25
- Re: HTML 4.01 Strict + CSS, Victor Engmark, 2007/02/25