Answers for "html table in a tr"

2

html table tr as link

<!--
You can't do that. It is invalid HTML.
 You can't put a <a> in between a <tbody> and a <tr>. Try this instead:
-->
<tr onclick="window.location='#';">
        ...
</tr>
<!--
add style for pointer view
-->

[data-href] { cursor: pointer; }
<!--
When you work up to it, you'd want to use JavaScript to assign the click handler outside of the HTML
-->
Posted by: Guest on August-05-2021
2

what is <tr> in HTML

<tr> which stands for Table Row is an HTML element tag and is used to define a row of cells in a table.
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language