react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Update <b> tags to <strong> tags to reflect current best practices

Open one2code opened this issue 1 year ago • 3 comments

I noticed that the final code example in the Passing Props to a Component section of the beta documents is using a bold tag for the titles that are rendered with the passed in props. This is a dated practice, and the current best practice is to use the strong tag instead, which I believe better adds to the more current and up-to-date spirit of the beta React docs. The update would also have to be applied to the solution as well.

one2code avatar Mar 11 '23 00:03 one2code

Im just trying to understand what you mean by dated practice. It seems like both serve their own purpose? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong#b_vs._strong

harish-sethuraman avatar Mar 11 '23 05:03 harish-sethuraman

I have created a pull request on this issue somebody please check it.

Betselot-GA avatar Mar 11 '23 15:03 Betselot-GA

Im just trying to understand what you mean by dated practice. It seems like both serve their own purpose? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong#b_vs._strong

The strong element is for content that is of greater importance, while the b element is used to draw attention to text without indicating that it's more important.

Betselot-GA avatar Mar 11 '23 15:03 Betselot-GA