Lesson 6 lists inside lists


#1

can you help me with this this is hard
<ul>
<li>Favorite Boy and girls names </li>
<ol>
<li></li>
</ol>
<li></li>
<ol>
<li></li>
<li></li>
</ol>
<li></li>
</ul>


#2

Hi you forgot some

    it should like that
      <ol>
    		  <li>Favorite Boys' Names
    		        <ul>
    	                <li></li>
    	                <li></li>
    	                <li></li>  
    		        </ul>
    		    </li>
    		    <li>Favorite Girls' Names
                    <ul>
                           <li></li>
    	                <li></li>
    	                <li></li>
                    </ul>		    
    	    </li>
    	</ol>

#3

thanks you are a good help


#4

You helped me too!!! Thx


#5

Thx for the help you helped me out alot:grin::cat:


#6

Try to use spacing like wizmarco is using. This is called nesting, and it makes your code much easier to read and debug.


#7

So using your example you only close your ordered list item once the unordered list is finished?!
I had basically done this:

<ol>
      <li>Favourite Boys' Names</li>
             <ul>
                   <li></li>
                   <li></li>
                   <li></li>
             </ul>
</ol>

It got graded as correct so I only noticed it by coincidence. To only close after the unordered list is crucial I assume?! It IS better to follow the indentation I guess... :wink: