Examveda

Choose the correct HTML tag to left-align the content inside a table cell
1. <td leftalign>
2. <td align=”left”>
3. <td valign=”left”>
4. <td="left">

A. Option 1

B. Option 2

C. Option 3

D. Option 4

Answer: Option B

Solution (By Examveda Team)

To left-align the content inside a table cell in HTML, you should use the tag with the align attribute.

The correct syntax is .

Here's why the other options are incorrect:

1. : This is not a valid HTML attribute.

3. : The valign attribute is used for vertical alignment, not horizontal alignment.

4. : This is an incorrect syntax for attributes in HTML.

Thus, Option 2 correctly uses the align attribute to achieve left alignment.

This Question Belongs to HTML >> HTML Fonts, Tags And Elements

Join The Discussion

Related Questions on HTML Fonts, Tags and Elements