• Resolved Andry

    (@blackstar1991)


    Can you explain why a button <b> that is supposed to wrap text in Bold style and is labeled as actually wraps in the tag <strong>?

    They’re different tags.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator jordesign

    (@jordesign)

    Hey @blackstar1991 – the reason for this is that originally (way back when) <b> was used to signify Bold as you stated. At some point most editors started using <strong> as it indicated a semantic value of the text being important (rather than just a styling change).

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong#b_vs._strong

    Thread Starter Andry

    (@blackstar1991)

    I understand. But this text on the button is deceiving users. There are millions of sites in the world that use an unreliable tag.

    Perhaps because by default WordPress changed the tag usage rule from <b> to <strong> , the W3C guidelines no longer consider the tag to be a semantically strong tag.

    Regular users don’t care <strong> or <b> but with this decision, WordPress polluted millions of databases with incorrect mapping.

    Is it possible to raise this problem to a general vote and return the button to the tag that is written on it?

    Moderator jordesign

    (@jordesign)

    Hey @blackstar1991 – I totally understand what you mean. In terms of the specific usage within the Classic Editor – it is related to the editor library (called TinyMCE) which has always been used – the functionality of which is pretty much included as-is.

    If you wanted to raise it for discussion – that’s definitely something you could do. The best place for that is Github – where the development of the plugin is managed. You can add an Issue to raise it at this link:
    https://github.com/WordPress/classic-editor/issues/new

    Thread Starter Andry

    (@blackstar1991)

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incorrect output of tag’ is closed to new replies.