Subscribe:

Tuesday

Combine and Nest Two or More Types of Lists


You can also use another record within itself or even one form of record within another form of record. Everytime you use a record within another record, you are nesting details. Perhaps the best example for stacked details is an summarize like those designed for a school assignment.

I. Introduction
II. Aspect 1
A. Description
B. Examples
1. Referrals One
2. Referrals Two
III. Aspect 2
IV. Summary
                                                

Can you think about what the HTML value would look like for the before outline? The best remedy would be to use a sequence of stacked requested details as proven in the following representation and value.
<ol type="I">
<li>Introduction</li>
<li>Part I
<ol type="A">
<li>Description</li>
<li>Examples
<ol type="1">
<li>Reference One</li>
<li>Reference Two</li>
</ol>
</li>
</ol>
</li>
<li>Part 2</li>
<li>Summary</li>
</ol>

As I described before, you can also nesting one form of record within another kind. For example, you could involve a bulleted record in the information record to give further explanation to a information description. Look at the following representation and value to see what I mean.
<dl>
<dt><b>Morning</b></dt>
<dd>Corinna wakes up around 7:00.</dd>
<dd>Change her diaper and dress her.</dd>
<dd>Feed her breakfast. Some of her favorites are:
<ul>
<li>Waffles</li>
<li>Oatmeal</li>
<li>Cereal</li>
<li>Fruit</li>
</ul>
</dd>
</dl>

0 comments:

Post a Comment