Giter Site home page Giter Site logo

Comments (5)

Jehu avatar Jehu commented on May 24, 2024 1

I use section Tag if it's a section of relatet Content. Usually with a starting H2 Tag in it. A Landingpage would have multiple sections. I try to prevent nesting of sections. I am using thearticle tag when it makes sense semantically. This could be a list of blog teasers (each is an article) and the post content on the detail page is wrapped in an article tag as well (maybe with a header and footer if nescessary) . For landing pages i do not use the articletag.

I would reference this page: https://www.w3schools.com/html/html5_semantic_elements.asp as a starting point.

from nue.

tipiirai avatar tipiirai commented on May 24, 2024

So draw_sections: false is not working as expected?

from nue.

Jehu avatar Jehu commented on May 24, 2024

Okay, this is working. I am a bit confused how nuejs renders boxes as sections automatically. I would prefer to render them as div instead because usually i am using sections as direct children of main only.

from nue.

tipiirai avatar tipiirai commented on May 24, 2024

I really like the idea of using sections as direct children of main only. Makes a lot of sense. I might copy that pattern. Is there any reference to that pattern out there? How do you use the article tag?

from nue.

tipiirai avatar tipiirai commented on May 24, 2024

Thanks. I'm kind of in a same situation semantially. I was hoping you'd have some very strict working rules that you've found beneficial when structuring content, layout, and CSS. I mean the help on the W3 schools doc does not get me very far:

you will find HTML pages with <section> elements containing <article> elements, and <article> elements containing <section> elements.

from nue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.