Using `<i>` Against Parentheses

When you write for the web, should authors use an element <i>with a class, or should they use regular parentheses to indicate phrase brackets?

Example:

<p>I was walking to my car <i class="paren">on the other side of town</i>, when...</p>

<p>I was walking to my car (on the other side of town), when...</p>

Accompanied by:

.paren {
    font-style: normal;
    &::before {content: '(';}
    &::after {content: ')';}
}

It’s just interesting which one is more semantically suitable. Of course, an easier choice would be to simply type shift + 9instead of marking it with HTML, but according to the Project , it <i>should be used to indicate a change in voice, which exactly corresponds to the phrase in brackets: usually a short pause and a decrease in the volume and pitch of one voice precede it.


, em dashes &mdash, — em .

+4
2

, , "" . / ( / ). , HTML , .

, , . ; , script, .. , span i; i , .

, , , , . 1

, CSS ( , ). .

1: , . , 3.3.2.

+1

http://www.w3schools.com/tags/tag_i.asp

, . (, , ) , , - . , , , : "" html5.

: , i-, , , - , , , de-emphsis, . , , .

.

i, , -empahsis .

, .

, , , :

    <p>I was walking to my car (<i class="de-emphasis">on the other side of town</i>), when...</p>

, - , - . , .

0

Source: https://habr.com/ru/post/1529608/


All Articles