Emphasis added tone, use the <strong> and <em> tag

With the title of the paragraph there, and now if you want special emphasis on certain words in a paragraph, this time you can use the <em> or <strong> tags.

       But the two are different in tone to emphasize: <em> emphasis, <strong> expressed more strongly emphasized. Browser and <em> by default in italics represent, <strong> by bold FIG. Two labels compared to the current domestic front-end programmers prefer to use <strong> emphasis.

grammar:

<em>需要强调的文本</em>  

<strong>需要强调的文本</strong> 

In both the default browser styles are different:

<! DOCTYPE the HTML > 
< HTML > 
< head > 
< Meta HTTP-equiv = "the Type-the Content" Content = "text / HTML; charset = UTF-. 8" > 
< title > Gatsby </ title > 
</ head > 
< body > 
    < the p- > 1922 in the spring, a famous wanted man named < strong > Nick • Callaway </ strong > (Tobey Maguire Tobey Maguire • ornaments) writer, left the Midwest, to New York. It was a gradual loss of moral sense, pop jazz, smuggling is king, stock soaring era. In order to pursue his American dream, he moved into a bay near the New York residence. <
    the p- > < EM > Fitzgerald </ EM > , one of America's literary giants of the twentieth century, both the author and screenwriter double identity. He sensitive poet and dramatist's imagination as "Jazz Age" singing gorgeous elegy, Fuji notes that poet and dreamer's temperament also that extravagant era. </ P > 
</ body > 
</ HTML >

Browser output looks like:

The spring of 1922, a famous wanted man named Nick • Callaway writer (Tobey Maguire Tobey Maguire • ornaments) and left the Midwest to New York. It was a gradual loss of moral sense, pop jazz, smuggling is king, stock soaring era. In order to pursue his American dream, he moved into a bay near the New York residence.

Fitzgerald , one of America's literary giants of the twentieth century, both the author and screenwriter double identity. He sensitive poet and dramatist's imagination as "Jazz Age" singing gorgeous elegy, Fuji notes that poet and dreamer's temperament also that extravagant era.


 

 <Em> The content displayed in italics, <strong> appear as bold in view. If you do not like this style, it does not matter, then you can use css styles to change it.

 

Guess you like

Origin www.cnblogs.com/iBoundary/p/11414028.html