With paragraphs and titles, now if you want to emphasize certain words in a paragraph, you can use the <em> or <strong> tags.
But there is a difference in the tone of emphasis: <em> means emphasis, <strong> means stronger emphasis. And in browsers, <em> is expressed in italics by default, and <strong> is expressed in bold. Compared with the two tags, domestic front-end programmers currently prefer to use <strong> to express emphasis.
Let’s take a look at an example
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <h1>水调歌头·丙辰中秋</h1> <pre> 朝代:宋代 作者:苏轼 <strong>丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。</strong> 明月几时有,把酒问青天。不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间? <em>转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。但愿人长久,千里共婵娟。</em> <pre> </body> </html>
<em>’s content is displayed in italics during browsing, and <strong> is displayed in bold. If you don't like this style, it doesn't matter. You can use css styles to change it later.
Next Section