Re: The href attribute

If memory serves, "href as a global attribute" was actually part of the now defunct XHTML 2. There was no implementer interest, due to backwards compat issues.

Lea Verou ✿ http://lea.verou.me ✿ Twitter & elsewhere: @leaverou











> On 2Dec, 2020, at 17:53, Tom de Visser <tom_devisser@icloud.com> wrote:
> 
> 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 15:05:11 UTC