There's no way to do this entirely within HTML. What you need is some kind of HTML builder/compiler. You could potentially write a simple Python script to loop through your tags, check the size of the linked URL, and update the link text.
this post was submitted on 11 Apr 2025
4 points (100.0% liked)
HTML
359 readers
1 users here now
founded 2 years ago
MODERATORS