Question about best practices using tags inside components

  • benjamin.h-1292530954962731038

    Ben H

    5 months ago

    When working inside components, should I use tags like "Main" or "Header" to indicate the main part of a component or the header of a component, even if the component itself may be used outside of a page's main or header sections? In other words, should I reserve "Main" and "Header" tags for the root page, or is it best practice to use these tags within components as well to denote hierarchy within components?
  • max.kayr-1292533082162987049

    Max

    5 months ago

    You should look at the page as a whole. If you have 3 components on one site that all have a header, this will make your html messy.
    ❤️1
  • benjamin.h-1292599837841424385

    Ben H

    5 months ago

    Got it, thx

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.