One example that I know, previously, we had <b> and <i> for bold and italics.
But since HTML5, they became <strong> and <em>.
Well, not really. First, <b>, <i>, <strong> and <em> have existed since the very first complete drafts of HTML. They're all the same age. HTML5 gave <b> and <i> semantics that they didn't have previously, and the semantics of <em> changed quite subtly, but otherwise nothing changed. What that meant was that if you want semantics-free bold and italics, it's necessary to use CSS: font-weight: bold and font-style: italic respectively.
Well, not really. First,
<b>,<i>,<strong>and<em>have existed since the very first complete drafts of HTML. They're all the same age. HTML5 gave<b>and<i>semantics that they didn't have previously, and the semantics of<em>changed quite subtly, but otherwise nothing changed. What that meant was that if you want semantics-free bold and italics, it's necessary to use CSS:font-weight: boldandfont-style: italicrespectively.Thank you for the clarification! Appreciate it! 😃
Yes, I'm accustomed to use CSS as well if I want to apply bold or italics, also when I need to customize font sizes and untouch the headings 😊