Key Ideas
1Semantic vs Presentational Text. HTML has two categories of text formatting tags: semantic tags and presentational tags. Semantic tags carry meaning — they tell browsers, screen readers, and search en...
2Bold and Importance — <strong> vs <b>. <strong> marks text as semantically important — screen readers may change their tone of voice, and search engines give the word extra weight. <b> simply re...
3Italic and Emphasis — <em> vs <i>. <em> adds stressed emphasis that changes the meaning of a sentence. The word choice matters — "I never said that" vs "I never said that" mean different things. &...
4Highlighted Text — <mark>. <mark> renders text with a yellow highlight by default — like using a highlighter pen. It semantically means "this text is relevant to the current context." Perf...
5Small, Deleted, Inserted — <small>, <del>, <ins>. These three tags represent common real-world editing and fine-print patterns: