Thẻ span trong html w3schools
ExampleA element which is used to color a part of a text: Show My mother has blue eyes. Try it Yourself » Definition and UsageThe The The element, but is a block-level element and is an inline element.Browser Support
Global AttributesThe Event AttributesThe Related PagesHTML tutorial: HTML Block and Inline Elements HTML DOM reference: Span Object Default CSS SettingsNone. Definition and UsageThe Applies toThe
ExamplesCol ExampleHere, the first two columns should have a background color of red:
Try it Yourself » Colgroup ExampleSet the background color of the first two columns using the
Try it Yourself » Browser SupportThe
ExampleLet the element span across all columns: h2 { Try it Yourself » More "Try it Yourself" examples below. Definition and UsageThe Show demo ❯
Browser SupportThe numbers in the table specify the first browser version that fully supports the property. Numbers followed by -webkit- specify the first version that worked with a prefix.
CSS Syntaxcolumn-span: none|all|initial|inherit; Property Values
More ExamplesExampleDivide the text in a element into three columns:
div { Try it Yourself » ExampleSpecify a 40 pixels gap between the columns: div { Try it Yourself » ExampleSpecify the width, style, and color of the rule between columns: div { Try it Yourself » Related PagesCSS tutorial: CSS Multiple Columns HTML DOM reference: columnSpan property |