td width html code example

Example 1: table td data in middle

vertical-align: middle

Example 2: 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 -->

Tags:

Css Example