span element versus element span attribute
span Element vs span Attribute
The span element: allows you to group phrasing content for styling/scripting(interactivity) or other purposes.
The span attribute: allows you to specify how many columns a col or colgroup element will span in a table.
Video demonstration span element versus span attribute
HTML5 span element versus span attribute Tutorial
min | video details |
---|---|
00:05 | this video presents the difference between the: span element and the span attribute |
00:12 | span element |
00:12 | span element allows you to group phrasing content for styling /scripting/ other purposes |
00:19 | span attribute |
00:19 | span attribute allows you to specify how many columns a col or colgroup element will span in a table |
00:27 | in this case, span element groups phrasing content for styling purpose |
00:39 | result: the text wrapped inside span element is colored in blue |
00:51 | the first colgroup element is spanning 3 columns through span attribute |
00:58 | colgroup element is spanning all 4 columns through span attribute |
01:08 | col element spanning all 4 columns through span attribute |
01:08 | note: CSS rules have been defined for col and colgroup elements |