Can I use the <Details> tag to compose a <Nav>?

Asked

Viewed 20 times

0

It is possible to use the tag <details> within a <nav> as a dropdown menu? Or is not very semantic for SEO?

Example:

<nav>
    <details>
        <summary>Menu</summary>
        <a href="#">Link 1</a>        
        <details>
            <summary>Sessão 1</summary>
            <a href="#">Link 3</a>
        </details>
        <a href="#">Link 4</a>
        <a href="#">Link 5</a>
    </details>        
</nav>
  • I think with regard to Seo may not be as critical as for accessibility issues. But something you should seek to know eh how Google indexes in Rp a component of this type, because it should not contain the metadata that would be relative to a Nav

  • 1

    Semantics and SEO are not 2 "exactly" related subjects, although making a more organized site may make it easier, but you may have thought to do something that of course, which actually is not, the question is, it works well for the JS-independent user, then it will probably work well for the "indexers" (at least google), otherwise there are Maps and the like that help. Improving a menu or HTML will not get you ahead, nor do a good html overall, organic search is something that takes time, investment and knowledge.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.