The HTML span element

Sometimes you want to identify part of a block of text.  You do this by placing span tags around it.  At the moment this might seem a little pointless but learn how now because later you will need it.

Open textemphasis.html.  In the first paragraph find the word without.  Put span tags around it so it looks like this:


Save the page and view it in a browser and there should be no change.  Amend the code so it looks like this:

<span style="color:red;">without</span>

Don't worry for now what the new stuff is (it's CSS) but it does illustrate what span elements are for.  They allow you to work with just small chunks of text.  Save and view.