Giter Site home page Giter Site logo

About h1 about marx HOT 5 CLOSED

fiatjaf avatar fiatjaf commented on June 7, 2024
About h1

from marx.

Comments (5)

samwilson avatar samwilson commented on June 7, 2024

(Do you mean "use only one h1"?)

Headings currently do decrease in size as they go down in importance. Not by a huge amount, but it's quite noticible in many situations.

from marx.

fiatjaf avatar fiatjaf commented on June 7, 2024

no, I meant use only h1, not h2 or h3 or any h.

from marx.

samwilson avatar samwilson commented on June 7, 2024

ah right, that makes sense: because the hierarchy is provided by nesting <section> elements, is that it? It would be possible to style it so that one could do both (either nest sections, or use h1, h2, h3, ...).

from marx.

fiatjaf avatar fiatjaf commented on June 7, 2024

Well, probably with something like section h1, header h1, section header h1, article h1. I don't know. We should see how Chrome styles it in its default stylesheet.

from marx.

ricklancee avatar ricklancee commented on June 7, 2024

yes, we should be using only h1

No, we shouldn't. See the spec:

There are currently no known implementations of the outline algorithm in graphical browsers or assistive technology user agents, although the algorithm is implemented in other software such as conformance checkers. Therefore the outline algorithm cannot be relied upon to convey document structure to users. Authors are advised to use heading rank (h1-h6) to convey document structure.
http://www.w3.org/TR/html5/sections.html#outlines

It is currently discouraged to use only h1. Stick to one h1, then use h2-h6s.
Note: it's currently discouraged, this might change in the future.

from marx.

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.