newcoder1010 Posted July 4, 2017 Share Posted July 4, 2017 Hello, I would like to make a list as follows: <ol class = "lg"> <li>Open the<strong> command prompt </strong>one of the following ways: </li> <ul class = "md"> <li>Click Search > Enter cmd > Choose Command Prompt. </li> <li>Right-click Start button > Click run > Enter cmd</li> </ul> <li>In the <strong>command prompt</strong>, type the command <strong>path </strong>. </li> <li>In the command prompt, type the command <strong>java -version</strong> </li> <img src="http://selenium.MT.com/images/selenium-java_st3.png" alt="selenium java" /> </ol> But I only get the first li element numbered. Everything after that are bullets. How can i placed un-ordered inside ordered? Link to comment Share on other sites More sharing options...
Ingolme Posted July 4, 2017 Share Posted July 4, 2017 The inner list should be placed inside a list item. No element can be a direct child of <ul> or <ol> except an <li> element. <ol> <li>Inner list <ol> <li>Item 1</li> <li>Item 2</li> </ol> </li> <li>Item 2</li> <li>Item 3</li> <li><img src="" alt=""></li> </ol> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now