Nesting+Tags

If you have some text that should get the properties of two tags, say bold () and italics (), you will want to put both sets of tags around the text. There is a right way and a wrong way to do this. The important thing is to think of one set of tags as being inside the other one.... code format="html4strict" sample code This code would be correct, since the ... tag set is //inside// the ... set. This would work as well: code format="html4strict" sample code because the ... tag set is inside the ... set.

However the following does not work: code format="html4strict" sample code You really can't say that either tag set is inside the other, so this is illegal HTML code.

In truth, most browsers will let you get away with this; they are smart enough to figure out what you meant. But it's not good enough for this class!