Bold, italic and line breaks · 加粗、斜体和换行
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
Make words stand out
<strong>makes text bold — for important words.<em>makes text italic — for a gentle emphasis.- Wrap only the word you want:
very <strong>important</strong> news.
中文
让文字更突出
<strong>让文字加粗 —— 用于重要的词。<em>让文字变斜 —— 用于轻微的强调。- 只包住你想要的那个词:
very <strong>important</strong> news。
<p>This cake is <strong>delicious</strong> and still <em>warm</em>.</p>
English
Line breaks
- Sometimes you want a new line inside one paragraph.
- Use
<br>— a single tag with no closing tag and nothing inside it. - It is like pressing Enter once.
中文
换行
- 有时你想在同一个段落里另起一行。
- 用
<br>—— 一个单独的标签,没有结束标签,里面也什么都不放。 - 它就像按了一下 Enter 键。
<p>Roses are red<br>Violets are blue</p>
English
Common mistakes
<br>makes a line break and has no closing tag.- Use
<strong>and<em>for meaning, not just bold or italic looks.
中文
常见错误
<br>换行,没有闭合标签。- 用
<strong>和<em>表达含义,不只是加粗或斜体的样子。
English
Now you try
- Wrap a word to make it bold, and add a line break.
- Press ▶ after each change to see what happens.
中文
现在你来试试
- 把一个词包起来让它变粗,再加一个换行。
- 每改一次就按 ▶ 看看效果。
Make the word fresh bold. Wrap just that word in <strong> … </strong>. · 把单词 fresh 加粗。只把这个词用 <strong> … </strong> 包起来。
Add a <br> between the two lines so they show one above the other. · 在两行之间加一个 <br>,让它们上下排列。