Vidyalelo
HTML · Q38

HTML Fonts, Tags And Elements

Programming · HTML · question 38

Q38

Choose the correct HTML tag to left-align the content inside a table cell 1. 2. 3. 4.

A.
Option 1
B.
Option 2
Answer
C.
Option 3
D.
Option 4

Answer: Option B

Solution

Answer: Option B
Solution:
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.