The href attribute

Hey there,

Just a quick idea that I think will really improve HTML markup. I haven’t found any caveats myself, but I don’t know if it’s possible. I’m not a super experienced developer, but I thought I’d give this a shot.

You often use anchor tags to wrap list items or images and you end up with a lot of messy markup tags, like <ul><li><a>Home …

Is it possible to add href to more elements? So you’d get things like <li href=“”> or <img href=“”>?

Thanks for considering!
Tom

Received on Thursday, 28 January 2021 14:58:10 UTC