Sara Soueidan 9/7/2018

Nested Links Without Nesting Links

Read Original

This article addresses a front-end web development challenge: making an entire article preview clickable while preserving individual links within it (like author names). It explains the HTML specification's prohibition against nesting <a> tags and details a creative workaround using the <object> element with an invalid type to trick the browser into rendering the nested link structure correctly.

Nested Links Without Nesting Links

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes