HTML tags optimization [ interesting problem]
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Thu Sep 1 19:37:54 EDT 2005
DENG enlightened us with:
> i use SGMLParser to process HTML files, in order to do some
> optimizations,
>
> something like this:
>
><i><b>TEXT1</b></i><b><i><u>TEXT2</u></i></b>
>
> optimise to
>
><i><b>TEXT1<u>TEXT2</u></b><i>
Why not optimize it to:
<span class='onerole'>TEXT1</span>
<span class='secondrole'>TEXT2</span>?
> [ snipped stuff about <font> tags ]
If you're serious about using HTML, I suggest you read a book that's
not ten years old.
> anyone can give me some advices?
Yes, read the following:
http://www.w3.org/QA/Tips/
http://www.w3.org/TR/CSS21/
http://www.w3.org/TR/xhtml1/
http://validator.w3.org/
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list