score:2

for link part you are doing it correctly. just remove <div> from link tag.

to make whole table cell clickable irrespective of content within it set display of link to block via css or inlinke css. e.g.

display: block

here is css for the same.

td a {
    display:block;
    width:100%;
}

Related Query

More Query from same tag