Best HTML structure - Virtual Store [closed]

3

Talk to people, blz?

My question is, what is the best HTML structure to build a virtual store? Taking into account semantic and SEO standards.

For example:

  • Should I use divs , li or articles in the product listing?
  • Or should I use articles only on category pages and the remaining divs or li ?
  • Can I use sections within sections , to separate products on the same page?

Would it be something like this?

...
<section>
    <header>
        Header Pagina
    </header>
    <section>
        <header>
            Categoria 1
        </header>
        <article>
            Produto
        </article>
    </section>
    <section>
        <header>
            Categoria 2
        </header>
        <article>
            Produto
        </article>
    </section>
    <footer>

    </footer>
</section>
...
    
asked by anonymous 30.04.2016 / 05:47

1 answer

2

Well, your question has no answer because there is no structured HTML for sites of type a or b, HTML is for structuring how the elements are going to be displayed. Trying to help you I will say the following:

  • Thinking about optimizing your code for SEO always use HTML5, since your tags are searched by search engines because of the semantics.
  • Study the purpose of each new HTML5 tag so that you do not use it in the wrong context.
  • Code is not the most important thing when it comes to SEO, think about it and the one researched.
  • Should I use divs, li or articles in the product listing? Or should I use articles only on the category pages and the rest divs or li? I do not know how to respond because that depends on how the page is going to be structured.
  • Can I use sections within sections, to separate the products on the same page? Yes, section can stay within another section, this has no restriction, but if it will meet your need it depends on the content and structure of the page.
01.05.2016 / 02:41