tilde.town/tiny.html

54 lines
2.0 KiB
HTML

<link rel=stylesheet href=tiny.css>
<title>tiny</title>
<p>
this is a tiny html page.
i'm trying to make a page that's as small as possible
while still looking pretty nice.
so i got rid of a header and used the title.
and i styled the title so it looks like a header.
<s>another rule is, it can't show any errors in developer tools.
so i have to include a <code>&lt;meta charset=utf-8&gt;</code> tag,
i'm pretty sure.</s>
<i>just tested it &ndash; chrome doesn't have a problem with no
charset, but firefox does.
removing the <code>meta</code> tag saves 20 bytes,
so screw it.
let's take it out
(can you tell i am thinking this through as i type it?).</i>
<p>
i also have to display everything as block so
it'll just look like this.
but i think that's okay.
<p>
as of right now, this page uses
<s>151</s><s>142</s><s>137</s><s>116</s><s>140</s>
<b>36(link) + 84(sheet,minimized) = 120</b>
bytes,
minus the content.
i think that's pretty good.
<i>- as you can see, the size had been getting smaller and smaller
until the second to last one, where it went up to 140.
i did that for readability: since everything is
<code>display:block</code>,
it's hard to tell where paragraphs start.
so i added a pilcrow (&para;) to the start of each paragraph.</i>
<i>- i also moved the style to a separate sheet and linked it here,
which apparently saves space</i>
<p>
<s>another great property i just noticed:
the <code>&lt;style&gt;</code> tag at the top of the page
is all aligned with itself, which is also great.
not that you can see it, of course.
i thought about displaying it,
but that messes up the great alignment thing, and
that's the whole reason why it's great.
you can always view-source, if that's your deal.</s>
the style no longer lines up with itself.
it kind of sucks, but i'm trying to strike a balance
between good and not as good.
<p>
another thing you can do is make the size whatever you'd like.
it'll look good no matter what!
<a href=index.html>[return]</a>