Get the latest tech news

How to make a table row a link (2020)


Learn possible solutions and workarounds for turning HTML rows into clickable links.

Note that with this solution, users will not be able to control/command click on a row to open the linked page in a new tab (as is normal behavior when using<a> elements). Reddit uses<div> elements for their lists so you don't get an indication to what URL you will be navigated to while hovering over the row. From a user experience point of view, it can be very convenient to be able to click anywhere on a table row in order to navigate to another page.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Link

Link

Photo of Row

Row

Photo of table

table

Related news:

News photo

Pipistrello and the Cursed Yoyo puts a playful spin on Link's Awakening

News photo

SwitchBot made an air purifier that’s also a table and charging station

News photo

WHO-backed study finds no link between mobile phone use and brain cancer