Validierung -Element ul not allowed as child of element ul ...

krug_s

Mitglied
Hallo

Ich habe gerade meine HTML Code Validiert ..alles Ok bis auf ein Fehler...

Verstehe einfach nicht was will er von mir. :rolleyes: Kann mir jemand helfen ?


Line 56, Column 32: Element ul not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
<ul class="cd-item-wrapper">



HTML:
<ul class="cd-gallery cd-container">
                <ul class="cd-item-wrapper">
                    <li data-type="start" class="is-visible">
                                <div class="rand" id="rand-start"></div>
                    </li>
............
............
............
............
............
............
............
............

</ul> <!-- ul class cd-item-wrapper -->
    </ul> <!-- ul class cd-gallery -->
    </div> <!-- cd-gallery-container -->




............ = andere Code habe ich ausgelassen sonst wäre es unübersichtlich...
 
Sagt er doch genau:
ul not allowed as child of element ul in this contex
Du kannst das innere ul nicht als Kind von dem äußeren ul notieren, sondern wenn Du zwei Listen verschachteln willst, musst Du das innere ul in ein li des äußeren legen:
HTML:
<ul class="cd-gallery cd-container">
                <li data-type="start" class="is-visible">
                    <ul class="cd-item-wrapper">
                           <li ...
                           ...
                    </ul>
              </li>
 

Neue Beiträge

Zurück