Foone🏳️⚧️ on Nostr: remember kids: the point of the html "class" attribute is to list out the explicit ...
remember kids: the point of the html "class" attribute is to list out the explicit formatting of every element on your webpage.
CSS was supposed to split formatting from HTML! and it did.
now instead of horrible HTML like <font size="7" color="red">, we have CSS!
So our HTML can instead look like:
<div class="size-7 color-red">
note: you'll need to include a few hundred KB of CSS libraries to make this work properly, but that's the price we have to pay for elegance
Published at
2023-10-26 22:25:09Event JSON
{
"id": "482a30e17e0c3101f1d432a8bd4c9c690f3a7324ea2a2cda91a1266b8268dfb1",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1698359109,
"kind": 1,
"tags": [
[
"proxy",
"https://digipres.club/users/foone/statuses/111303662574507905",
"activitypub"
]
],
"content": "remember kids: the point of the html \"class\" attribute is to list out the explicit formatting of every element on your webpage. \n\nCSS was supposed to split formatting from HTML! and it did. \n\nnow instead of horrible HTML like \u003cfont size=\"7\" color=\"red\"\u003e, we have CSS! \nSo our HTML can instead look like:\n\u003cdiv class=\"size-7 color-red\"\u003e \n\nnote: you'll need to include a few hundred KB of CSS libraries to make this work properly, but that's the price we have to pay for elegance",
"sig": "6a641fb615ffc63425763f88d292d6299b8445cdb54f2c73dd353ab032b12de8751ae4a59091210992e16b225636b4faa578a092d635eda7b3325be0d69f910b"
}