Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8346621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:04:45+00:00 2026-06-09T07:04:45+00:00

In ul s the only valid elements are li s. To put another ul

  • 0

In uls the only valid elements are lis. To put another ul inside a ul I have to wrap it in an li like so:

Illegal:

<ul>
  <li>first outer item</li>
  <ul>
    <li>inner item 1</li>
    <li>inner item 2</li>
  </ul>
  <li>second outer item</li>
</ul>

Legal:

<ul>
  <li>First outer item</li>
  <li>
    <ul>
      <li>inner item 1</li>
      <li>inner item 2</li>
     </ul>
  </li>
  <li>Second outer item</li>
</ul>

My problem is the second in chrome (haven’t tested for other browsers) renders a bullet before the deeper bullet as below (two bullets before inner item 1. )

  • First outer item
    • inner item 1
    • inner item 2
  • Second outer item

Am I nesting it wrong? Should I fix this through CSS? (if so, a note how would be appreciated)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:04:46+00:00Added an answer on June 9, 2026 at 7:04 am

    Presumably the nested items are related to the previous item. The sublist should go into that item and not into an item of its own.

    <ul>
      <li>First outer item <!-- No </li> -->
      <!-- No <li> -->
        <ul>
          <li>inner item 1</li>
          <li>inner item 2</li>
         </ul>
      </li> <!-- </li> for First outer item AND the list of inner items associated with it -->
      <li>Second outer item</li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

starting with priority_queue s, I have a problem like this: I need elements to
As detailed here among other places, the only valid characters in a html/css class
My session seems to only be valid in the current window/tab. Also it seems
Select only showing first character of option text in IE 9 Using click on
I have often wrapped block level elements with <a> tags in order to make
I a have 2 distinct UI elements in distinct files : a menuItem (in
I am trying to match elements that have no other children elements, but also
I'm using numpy.delete to remove elements from an array that is inside a while
What is the best way to check if an array/tuple/list only contains elements in
I have several lists of strings like so, from a possible list of several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.