Chapter 7: Moving Ahead with XHTML
Chapter 7: Moving Ahead with XHTML 159 Secret #117: Proper Nesting of Lists One thing that markup authors moving to XHTML stumble over early on is how to nest lists properly in XHTML. In HTML, you could leave off the closing tag, and nest lists like this:
- Pens
- Felt tip
- Highlighter
- Fountain
- Envelope
- Stamp
The results (shown in Figure 7-5) are a nested, unordered list. Figure 7-5: A nested unordered list created using HTML. Logic says if you re closing all your nonempty elements in XHTML, you d do this:
- Pens
- Felt tip
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost PHP Web Hosting services