Webpage layout: Difference between revisions

m
→‎Spans: correcting
m (HTML5 alternatives - initial mention)
m (→‎Spans: correcting)
=Spans=
 
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 sectionpiece of text within an element. So let's keep it simple..
 
<pre><p>This text could be red</p></pre>
 
You will use 'span' rarely but it occasionally has a use.
 
 
=Float Warning=
5,838

edits