Nested Lists You can nest lists within one another.
In this example, we have a bulleted list embedded within a numbered list.
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Nested Lists</title> </head> <body> <ol> <li>Country</li> <li>British Pop: <ul> <li>Cold PLay</li> <li>Depeched Mode</li> <li>Adele</li> </ul> </li> <li>American Rock</li> </ol> </body> </html>
The bulleted sublist, the <ul> tag, is placed within one of the <li> tags within the numbered <ol> list.