+ 2
Difference between colspan and span
4 odpowiedzi
+ 6
colspan attribute is used to set the number of columns a cell should span in a table.
Span element is a generic inline container for phrasing content, which does not inherently represent anything.
+ 2
<span> is an inline tag
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span
meanwhile colspan is an attribute only valid for <th> oŕ <td> table tags
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table#complicated_tables
0
colspan is an attribute in tables that is used to make 2 or more columns into single column
span is an inline tag that is usef to highlight small portion of the text of image
Both of them purpose is different