Webpage layout: Difference between revisions

73 bytes added ,  14:24, 28 April 2013
m
→‎Spans: correcting
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 section within an element.  So let's keep it simple..
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=
5,838

edits