Re: Package(s) proposal(s): HTML_Image and HTML_Link.
| From: | Stan Lemon | Date: | Mon, 04 Aug 2003 03:19:10 +0000 |
| Subject: | Re: Package(s) proposal(s): HTML_Image and HTML_Link. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19217@lists.php.net to get a copy of this message | ||
Leandro,
Check out Pierre's w3c link. w3cschool is not w3c and they're wrong on that page. Width and height when not in a styke tag are not XHTML Compliant. They are considered "acceptable" in XHTML 1 Transitional, but they're completely out of XHTML 1.1 and XHTML 1 Strict and XHTML 1.1 Strict do not allow them either.
- Stan
Leandro Lucarella wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Davey, el domingo 3 de agosto a las 18:44 me escribiste:Width and Height are only to specified when overriding the images actual height, and I'm pretty sure are no longer valid in XHTML as they are deprecated in favour of CSS. <spec>width and height are both XHTML compiliant (even in Strict type documents). Only "align", "border", "hspace", and "vspace" are deprecated. At least this is what http://www.w3schools.com/tags/tag_img.asp says (sorry about the .asp ;-) - -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation - ------------------------------------------------------------------------height %Length; #IMPLIED -- override height -- width %Length; #IMPLIED -- override width --</spec> Consider using in-line CSS to set the width/height, <img style="width: 100px; height: 50px;" src="foo.jpg" /> will still give you the benefits you mentioned above (these are simply benefits, not required of the UA by the spec).E-Mail / JID: luca@lugmen.org.ar GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugli.org.ar --recv-keys B08B4FB2- ------------------------------------------------------------------------ System horror on C: Disco chungo. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/LVjQSwIP4LCLT7IRAphaAKCS0GXVjkGY60sQoEXIix38qUduQACfRPhH P/NMtcUTSD9MUMADaaFR/hU= =B5yv -----END PGP SIGNATURE-----