Why is <b> physical and <strong> logical?

Similar to <i> and <em> .

Yesterday I heard for the first time that b and strong are at least somewhat different, except for the name.

    2 answers 2

    Everything. Found it. They are synonyms only externally in a regular browser. If you dig deeper, then

     <b> 

    indicates bold text. It is bold text (until it is redefined in CSS).

     <strong> 

    indicates the selected text. Selected not necessarily graphically. In a regular browser, it is bold. So agreed. But this is absolutely not necessary: ​​voice programs highlight this text with intonation, some mobile browsers emphasize.

    So it turns out that <b> physically changes the text style to bold, and <strong> reports a change in the display logic, without calling for the use of a particular style.

    went to kill myself against the wall

      I also heard about physical elements for the first time, it was probably recently "invented". b and strong are not different for humans, but different for search robots - b is bold, they say for beauty, and strong is something very important in the text that they wanted to pay attention to.

      • I read about this a long time ago. It is unlikely for robots. As I recall, this is done for browsers for the visually impaired. - LeD4eG