Difference between revisions of "Sandbox"
m (Text replacement - "colour" to "color") |
|||
Line 3: | Line 3: | ||
<span style="color:red">This is some red text</span> | <span style="color:red">This is some red text</span> | ||
− | This <span style="color:blue">text</span> <span style="color:green">has</span> <span style="color:red">different</span> | + | This <span style="color:blue">text</span> <span style="color:green">has</span> <span style="color:red">different</span> colors. |
Span is used to give properties to some text. It does not break lines. | Span is used to give properties to some text. It does not break lines. |
Latest revision as of 03:54, 22 November 2018
This is some text
This is some red text
This text has different colors.
Span is used to give properties to some text. It does not break lines.
Div is the same as span, but div breaks lines.
This text has
up with a div.
So div and span are the same. They're both used to give properties to text, but span keeps things on the same line, and div puts things on their own line.
- 这 是 一 个 例子。
- 这 是 一 个 例子。