Which of these HTML codes aligns the content of the table cell to the right?
Explanation
The align attribute with a value of 'right' aligns the content of the table cell to the right.
The align attribute can have values of left, center and right.

The code:

<table border='1' width='50%'>
 <tr> <th>Month</th> <th>Income</th></tr>
 <tr> <td>January</td> <td align='right'>$1000</td> </tr>
</table>

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes