Is there any way to make clickable <td>
or <tr>
tags?
<td><a href="foo">bar</a></td>
<td onclick="window.location = 'index.html';">cell content</td>
index.html above can be any URL or internal page link. Note: the mouse pointer does not turn into a pointing hand when you mouse over the cell using this javascript method, but clicking on the cell does take you to the URL.
To turn non-link tags into links, use @Lie Ryan's answer and put an a
into the element.
To be able to link to an element:
Use an a
<a href="#idOfTheElement">Link to the element</a>
and a named point:
<td id="idOfTheElement">contents</td>
<td><a name="foo"/>bar</td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With