CSS/HTML: What is the correct way to make text italic?

后端 未结 12 1886
死守一世寂寞
死守一世寂寞 2020-12-02 06:46

What is the correct way to make text italic? I have seen the following four approaches:

Italic Text

I         


        
12条回答
  •  执笔经年
    2020-12-02 07:13

    I'd say use to emphasize inline elements. Use a class for block elements like blocks of text. CSS or not, the text still has to be tagged. Whether its for semantics or for visual aid, I'm assuming you'd be using it for something meaningful...

    If you're emphasizing text for ANY reason, you could use , or a class that italicizes your text.

    It's OK to break the rules sometimes!

提交回复
热议问题