To merge two or more cells into a single cell horizontally, you use the ______ attribute in a td or th element.
- align
- colspan
- merge
- rowspan
The colspan attribute in the
or
element is used to allow the cell to span across multiple columns. This effectively merges cells horizontally. For example, colspan="2" would make a cell span across two columns.
Loading...
Related Quiz
- Which attribute is used to add alternative text for an image?
- What is the significance of the viewport meta tag in HTML5?
-
How is the
tag typically displayed in browsers by default? - How is a hyperlink inserted within the body section of an HTML document?
- The ______ element should be used to group the footer content in a table.