Front page | perl.beginners |
Postings from April 2002
Re: HTML whine
From: Chas Owens
April 3, 2002 06:31
Re: HTML whine
Message ID: firstname.lastname@example.org
On Tue, 2002-04-02 at 20:26, Tagore Smith wrote:
> Jonathan E. Paton wrote:
> > Closing HTML tags is part of the specification, i.e.
> > not optional for syntactically correct HTML.
> > Such HTML only works with most browsers due to the
> > proliferation of badly coded HTML. If it wasn't
> > for that, then browsers wouldn't have such a hard
> > time parsing HTML (and would therefore be faster).
> > Alas, web designers cut back on HTML tags to improve
> > the download times - a mixed blessing.
> Not to nitpick (but I'm going to anyway :) ), but closing some tags (like p)
> is optional in all versions of HTML based on SGML. SGML allows for end tag
> minimization. Closing tags is mandatory in XHTML- xml does not allow for end
> tag minimization (in fact even empty tags, like img and br, must be closed).
> I don't know off the top of my head if the spec allows end tag minimization
> for option elements, but I agree that it is good form to close the tags.
> Since recent web servers and browsers increasingly use compression, and
> repeated elements compress well, bandwidth is becoming less of an issue.
> Tagore Smith
Just to take things even more off-topic:
XHTML does allow single self-closing tags like this <tag />. Examples
include tags that have no data to surround like <br /> and <hr />.
Today is Pungenday the 20th day of Discord in the YOLD 3168
Missile Address: 33:48:3.521N 84:23:34.786W