I still don’t get why there’s no shorter syntax for links in #HTML. I’m ready to live with tags and attributes, but four-letter-long attribute and full link? That’s too much. Take this:
<a href="https://aartaka.me/hypertext.html">…</a> — 48 chars
We can omit quotes in attributes
<a href=https://aartaka.me/hypertext.html>…</a> — 46 chars
We can remove the schema if we only care about one protocol (http/s.) This is called schema relative URLs.
<a href=://aartaka.me/hypertext.html>…</a> — 41 chars
Oftentimes, servers are smart enough to allow omitting file type, especially for HTML
<a href=://aartaka.me/hypertext>…</a> — 36 chars
Now this is as far as standard HTML, browsers, and Web Platform practices can get one. But the actual useful info (post link—aartaka.me/hypertext) takes only half of that—20 chars. The rest is formalities. Especially href=
The syntax I’m using in my posts is
<a aartaka.me/hypertext>…</a> — 28 chars
It’s bad, because it plays with how lenient browsers are when it comes to HTML attributes (aartaka.me/hypertext is just one huge attribute here.) But it’s also the shortest way to express the essence of link without breaking the syntax.
Given that we have implicitly closed tags, we must have some alternative link syntax that’s easier to write than the standard things I listed. But I’m not aware of one 😢
I realize I might sound contradictory—I proselytize HTML for a living and now I seem to be saying things are bad. But there’s always space for growth. Or, in case of HTML, for metastasizing developments some corporate people started using often enough. Google, please, introduce shorter links ahah.