What\'s the difference between and
,
and
in HTML/XHTML? When should you use
and
should be avoided because they describe the style of the text. Instead, use
and
because that describes the semantics (the meaning) of the text.
As with all things in HTML, you should be thinking not about how you want it to look, but what you actually mean. Sure, it might just be bold and italics to you, but not to a screen reader.