Lists within lists


#1
<head>
	<title>Federico</title>
</head>
<body>
<img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg"/>
<ul>
        <li> I enjoy playing soccer </li>
        <li> I want to get a job soon </li>
        <li> I lived in many houses </li>
        <li> I am a boy </li>
    </ul>
        <ul>
            <li> Thing I do in the summer
                <ol> 
                    <li> Read </li>
                    <li> Watch TV </li>
                    <li> Play Soccer </li>
                </ol>
            </li>
            </ul>
</body>

Error message:Oops, try again. Make sure you have at least one unordered list inside your unordered list of profile sections!

Where is the error?!?


#2

the error message seems straightforward? I don't see a unodered list (<ul>) nested inside a unordered list (<ul>), you should add this


#3

            <li> I enjoy playing soccer </li>
            <li> I want to get a job soon </li>
            <li> I lived in many houses </li>
            <li> I am a boy </li> <ul/>
        </ul>
            <ul>
                <li> Thing I do in the summer
                    <ul> 
                        <li> Read </li>
                        <li> Watch TV </li>
                        <li> Play Soccer </li>
                    </ul>
                </li>
                </ul>
	</body>
</html>

and now?!


#4

what is the new error message? Make sure you have all the nestings required, they are a bit more then in the instructions

Also, please post your full code


#5

Error message is:" Oops, try again. Make sure you have at least one unordered list inside your unordered list of profile sections!"

I have made one new code..
this is the new full code:

where are the errors? Unordered list in my unordered list of profile... but ul tag is ordered...

Now i have deleted many < and > because if i don't remove isn't possible see the text:

<head>
	<title>Federico</title>
</head>
---<body>--
<img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg"/>
<ol

li> Citazioni preferite </li
li> Hobbies </li
li> luoghi in cui ho vissuto </li
/ol
<ul
li> credere, obbedire, combattere </li
li> vince sempre chi più crede, chi più a lungo sa patir /li>
li> Siamo l'eterna gioventù /li>
li> è l'aratro che traccia il solco, ma è la spada che lo difende /li>
/ul

/body
/html


#6

Give the pinned topic here, https://discuss.codecademy.com/ a read for help with posting code samples.

As @stetim94 pointed out, you don't have a nested UL.

<ul>
  <li>                                 <!-- treat this LI as a DIV -->
    <h3>Things I Do in the Summer</h3>
    <ul>
      <li>...</li>
      <li>...</li>
      <li>...</li>
    </ul>
  </li>
  <li>...</li>
  <li>...</li>
</ul>

#7

You linlked me the general forum..

What is a DIV?

I have put this but always the site write me ''Make sure you have at least one ordered list inside your unordered list of profile sections!"

!DOCTYPE html
html
head
title>Federico/title
/head
body
img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg"/
ul
li
h3 Citazioni preferite /h3
ul
li> è l'aratro che traccia il solco ma è l spada che lo difende /li
li> credere obbedire combattere /li
li> vincere e vinceremo/li
/ul
/li
li>NOI TIREREMO DIRITTO/li
li>A NOI</li
/ul
/body
/html


#8

Yes, and the pinned topic at the top of the index is the one I am referring to.

It's my way of writing <div></div> in prose form. I've gotten into the habit of using the NODENAME for clarity. You'll also see P-node and DIV-node in some of my answers of the past.

A division is a block level element that spans the full width of the screen and which may contain any element (except HTML, HEAD, & BODY) whether block level or inline. It's the most fundamental container in HTML.

In the above I suggested treating the marked LI as a DIV, meaning to consider it as the same type of container. It is, after all, a block level element with the same general properties as a DIV when we forego the default styles sheet, user style sheet and any properties inherited from UL or OL.

When creating a list within a list, the parent LI is just a container.

Your code does not have an OL, only a nested UL. It should conform to the instructions...

<ul>
  <li>                                 <!-- treat this LI as a DIV -->
    <h3>Things I Do in the Summer</h3>
    <ol>
      <li>...</li>
      <li>...</li>
      <li>...</li>
    </ol>
  </li>
  <li>...</li>
  <li>...</li>
</ul>

#9

Thanks you for your patient.. but.. i continue to not understand. Do you can write me the link of your discussion about DIV?

What is not present in mi text? At the time of the course codecademy haven't write me about DIV.

I think to understand you speack of treat the LI on second line as a dividend of the page.. it's correct?
but the error message is always the same.


#10

Please post a link to this lesson so we can read the instructions. As well, please post your most recent code sample. Thanks.


#11

i have found the solution on this post: https://discuss.codecademy.com/t/my-list-is-not-working-keep-seeing-error-make-sure-you-have-at-least-one-unordered-list-inside-your-unordered-list-of-profile-sections/5213/10

it's ok but i haven't understood what was my problem


#12

Please post a link to the lesson, and you code so we can see where your problem is.


#13

Thanks you but i go onward, i don't want abuse of your time! Best Regards


#14

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.