How can we number definition lists? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How can we number definition lists?

Is there any way to number them as in ordered or unordered lists?

5th Feb 2017, 6:32 AM
Ashita Gupta
Ashita Gupta - avatar
1 Answer
+ 6
You can mix / imbricate each others between <ol> <ul> <li> ( only the third can be a container of the next ) <dl> <dt> <dd> ( all three definition lists element can contain previous list elements )... in example ( but more combination are possible ^^ ): <dl> <ul> <li> <dt>title</dt> <dd>description / definition</dd> <dd>description / definition</dd> </li> <li> <dt>title</dt> <dd>description / definition</dd> </li> </ul> </dl> <dl> <dt>title</dt> <dd> <ol> <li>description / definition</li> <li>description / definition</li> </ol> </dd> <dt>title</dt> <dd>description / definition</dd> </dl>
5th Feb 2017, 7:34 AM
visph
visph - avatar