All Pages All Books|
|
||||||
|
±\z
|
Part I — Introducing MySpace
|
|
||||
|
|
||||||
![]() |
Opening and Closing Tags
As we now know, there are opening tags and there are closing tags. Tags should be closed in the reverse order to that which they are opened.
You can see in the following example that the <p> tag is followed by the <b> tag, but then the </b> tag also follows the </p> tag.
<p><b>Born into a family of circus performers, I spent many of my formative years on the road. These years were tough, but they taught me a lot about life, and the value of family.</p></b>
This is wrong and may cause errors in sensitive browsers. This is how it should look:
<p><b>Born into a family of circus performers, I spent many of my formative years on the road. These years were tough, but they taught me a lot about life, and the value of family. </b> </p>
|
![]() |
||||
|
|
||||||
|
Wrapping Up
|
||||||
|
|
||||||
|
If you’ve worked through this and the previous chapter, you should have a reasonably good understanding of HTML. Feel free to experiment with the HTML tags you’ve learned to get a better understanding of how they work. I’ve mentioned the <div> and <span> tags purely for you to have some familiarity with them when you look at how to use them with CSS.
|
||||||
|
|
||||||
All Pages All Books