+ 1

What is the difference between <b> and <strong> in HTML text formatting?

Both bold text, but what else?

6th Apr 2018, 7:20 PM
staswalle
staswalle - avatar
2 odpowiedzi
+ 3
https://www.w3schools.com/tags/tag_strong.asp Definition and Usage The <strong> tag is a phrase tag. It defines important text. Tip: This tag is not deprecated, but it is possible to achieve richer effect with CSS. All phrase tags: Tag Description <em> Renders as emphasized text <strong> Defines important text <code> Defines a piece of computer code <samp> Defines sample output from a computer program <kbd> Defines keyboard input <var> Defines a variable ---------------------- https://www.w3schools.com/tags/tag_b.asp Tips and Notes: Note: According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The HTML 5 specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should use the <mark> tag. Tip: You can also use the CSS "font-weight" property to set bold text.
6th Apr 2018, 7:25 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
thanks
30th Aug 2018, 3:08 PM
staswalle
staswalle - avatar