Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: making html smaller

by Crulx (Monk)
on Jul 26, 2000 at 02:12 UTC ( [id://24363]=note: print w/replies, xml ) Need Help??


in reply to making html smaller

As for the real value of savings, if you have a lot of font tags the best way to deal with it is to put the fonts types you want as classes in a CSS. Then you can just <p class="stdfont" > to set the font for a particular block.

If you have a lot of font tags, that would clean up things far better than using the depricated font tag.

A final note on the 12% savings quoted above, You would only save that much if your entire webpage was made of font tags. There is no savings in the text. So as a whole, you save very little by "cleaning up" the font tags. And you loose your HTML compliance to boot. It is a bad idea and definately the Wrong Thing to do.
---
Crulx
crulx@iaxs.net

Replies are listed 'Best First'.
RE: Re: making html smaller
by visnu (Sexton) on Jul 26, 2000 at 02:26 UTC
    from w3.org's html 4.01 recommendation:

    By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39). Single quote marks can be included within the attribute value when the value is delimited by double quote marks, and vice versa. Authors may also use numeric character references to represent double quotes (&#34;) and single quotes (&#39;). For double quotes authors can also use the character entity reference &quot;. In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them.
    so according to that, attribute values don't have to be surrounded in quotes. but also, commas aren't allowed in the attribute value either.
      That is not how I read that....
      By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39).
      Seems to indicate to me pretty clearly that quotes (either single or double) are required.
      In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them.
      Now this says that you can omit quotation marks (but it still recomends that you keep them in), but only in certain situations situations. Note that the comma is not one of the characters that is allowed in a non-quoted string.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24363]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found