5,838
edits
m (HTML5 alternatives - initial mention) |
m (→Spans: correcting) |
||
Line 213: | Line 213: | ||
=Spans= | =Spans= | ||
Spans are used far less frequently than Divs, but worth a few moments …. | Spans are used far less frequently than Divs, because little else than text can be embedded within a span element, but worth a few moments …. | ||
A span allows you to reference a | A span allows you to reference a piece of text within an element. So let's keep it simple. | ||
<pre><p>This text could be red</p></pre> | <pre><p>This text could be red</p></pre> | ||
Line 232: | Line 232: | ||
You will use 'span' rarely but it occasionally has a use. | You will use 'span' rarely but it occasionally has a use. | ||
=Float Warning= | =Float Warning= |
edits