Bold, italic and line breaks · Chữ đậm, chữ nghiêng và ngắt dòng
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Trang này cần trình duyệt gần đây (hỗ trợ SharedArrayBuffer). Vui lòng cập nhật Chrome, Edge, Firefox hoặc Safari lên phiên bản mới nhất.
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.
Tiếng Việt
Làm nổi bật từ ngữ
<strong>làm cho chữ in nổi (bold) — dành cho những từ quan trọng.<em>làm cho chữ in nghiêng (italic) — để tạo sự nhấn nhẹ nhàng.- Chỉ bao quanh từ bạn muốn:
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.
Tiếng Việt
Ngắt dòng
- Đôi khi bạn muốn một dòng mới bên trong một đoạn văn.
- Sử dụng
<br>— một thẻ đơn với không có thẻ đóng và không chứa gì bên trong. - Nó giống như việc nhấn phím Enter một lần.
<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.
Tiếng Việt
Lỗi thường gặp
<br>tạo ra ngắt dòng và không có thẻ đóng.- Sử dụng
<strong>và<em>dựa trên ý nghĩa, không chỉ vì vẻ ngoài in đậm hay in nghiêng.
English
Now you try
- Wrap a word to make it bold, and add a line break.
- Press ▶ after each change to see what happens.
Tiếng Việt
Bây giờ bạn thử
- Bao quanh một từ để làm in đậm, và thêm một ngắt dòng.
- Nhấn ▶ sau mỗi thay đổi để xem điều gì xảy ra.
Make the word fresh bold. Wrap just that word in <strong> … </strong>. · Làm cho từ fresh trở nên đậm. Bọc từ đó trong <strong> … </strong>.
Add a <br> between the two lines so they show one above the other. · Thêm một <br> giữa hai dòng để chúng hiển thị một trên một.