4 ms·
Are anchor tags frowned upon in the small web movement? It feels like making it harder to follow hyperlinks goes against the "spirit" of what the web was built
by t_mann 4y ago
Are anchor tags frowned upon in the small web movement? It feels like making it harder to follow hyperlinks goes against the "spirit" of what the web was built for.
- sodimel 4y ago(this txt file is not an html element, it's lighter than a traditional webpage because of my poor connection and the fact that I'm self-hosting my website)
- t_mann 4y agook, but wouldn't the tags still be resolved by browsers, even if they're not wrapped inside <html>? or is the point that it's not meant to be viewed through a browser? the overhead of the tags in terms of bytes seems fairly negligible, no?
- sodimel 4y agoI think tags would not be recognized by browsers. I just select the link (triple click) and right click > open link in new tab.
- t_mann 4y agoYeah you're right, I just tested it on my site. Before I just tried it in Codepen, but I forgot that it autowraps everything inside <html> and <body>, haha
- perilunar 4y agoHTML tags will be recognised by browsers even if the file is not wrapped with an <html> tag, but only if the file is served as html. As I mentioned in a comment above, wrap the plain text in <pre></pre> tags, serve as html, then you can use links without adding any other html at all.
- t_mann 4y agoright - just removing .txt at the end should be enough even