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

后端 未结 12 1891
死守一世寂寞
死守一世寂寞 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:25

    I think the answer is to use when you intend emphasis.

    If when reading the text to yourself, you find that you use a slightly different voice to emphasise a point, then it should use because you would want a screen reader to do the same thing.

    If it is purely a style thing, such as your designer has decided that all your

    headings would look better in italic Garamond, then there is no semantic reason to include it in the HTML and you should just alter the CSS for the appropriate elements.

    I can't see any reason to use , unless you specifically need to support some legacy browser with no CSS.

提交回复
热议问题