Add tiny.html

This commit is contained in:
Case Duckworth 2019-06-26 22:32:05 -05:00
parent 7fac23961c
commit b2d775a4d1
3 changed files with 56 additions and 1 deletions

View File

@ -66,10 +66,11 @@
<li><a href="oregano.html">oregano</a></li>
<li><a href="enough.html">enough</a></li>
<li><a href="whatever.html">whatever</a></li>
<li><a href="tiny.html">tiny</a></li>
</ul>
</section>
<section id="experiments">
<h1>play</h1>
<h1>experiment</h1>
<ul>
<li><a href="button.html">button</a></li>
<li><a href="tssg/">tssg</a></li>

1
tiny.css Normal file
View File

@ -0,0 +1 @@
*{display:block;max-width:6in;margin:2%}title{font-size:2em}p:before{content:"\b6"}

53
tiny.html Normal file
View File

@ -0,0 +1,53 @@
<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>