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
AnswerC.
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.
Thus, Option 2 correctly uses the align attribute to achieve left alignment.