-1
<ul id="menu-main-menu">
    <li class="has-mega-menu">
        <a href="#">Getting Pregnant</a>
        <ul class="sub-menu">
            <h3>Topics</h3>
        </ul>
    </li>
    <li><a href="#">Pregnancy</a></li>
    <li><a href="#">After Pregnancy</a></li>
    <li><a href="#">New Born</a></li>
    <li><a href="#">New Parents</a></li>
</ul>

The thing is that the h3 or p isnt allowed as a child of a ul. In my situattion I need to add a title like "Topics" then below some lis . HWhat is the best option to do this? The correct one? Thanks

  • @IkoTikashi put span inside of li http://stackoverflow.com/questions/17268834/nesting-html-tags-inside-ul-other-than-li – dowomenfart Mar 25 '15 at 19:33
  • 2
    @dowomenfart I know, but using `` instead of `

    ` (as you stated) is not correct , since there's no `

  • ` around it.
  • –  Mar 25 '15 at 19:36
  • HOTDOG! Missed that thanks for pointing it out. – dowomenfart Mar 25 '15 at 19:39
  • possible duplicate of [How to semantically add heading to a list](http://stackoverflow.com/questions/8935262/how-to-semantically-add-heading-to-a-list) – eritbh Mar 25 '15 at 20:54