Answers for "how to set td width for each cell in table"

0

How to increase the cell size in table in html?

<table width = 80% height = 50%> <!-- You can set the height and width by using the height and width attributes with table tag and writing the size in %age (percentage). -->
	<tr align="center">
      <th>Question</th>
      <th>Answer</th>
	</tr>
  <tr>
    <td>1 + 1 = </td>
    <td>2</td>
  </tr>
  <tr>
    <td>2 + 2 = </td>
    <td>4</td>
  </tr>
</table>

<!-- You can try this in your code editor by copying this to your code editor -->
<!-- Thank you if this helped you and Sorry if it didn't worked for you -->
Posted by: Guest on October-24-2020

Browse Popular Code Answers by Language