Thẻ định dạng văn bản trong html với ví dụ
Định dạng văn bản là một phần quan trọng của các trang web internet hiện đại; . , đã có sẵn. Với các bản sửa đổi HTML hiện đại, có rất nhiều Thẻ HTML có thể được sử dụng để làm cho văn bản xuất hiện theo ý thích của bạn Gói phát triển phần mềm tất cả trong một(hơn 600 khóa học, hơn 50 dự án) Giá 600+ Khóa học trực tuyến. hơn 50 dự án. Hơn 3000 giờ. Giấy chứng nhận có thể kiểm chứng. Truy cập Trọn đời Định dạng văn bản bằng thẻ HTMLDưới đây chúng tôi sẽ thảo luận về một số thẻ HTML quan trọng được sử dụng để định dạng văn bản Bắt đầu khóa học phát triển phần mềm miễn phí của bạn Phát triển web, ngôn ngữ lập trình, kiểm thử phần mềm và những thứ khác 1. Định dạng văn bản in đậm trong HTMLHTML has two different tags to set the text to a bold appearance. One is and the other one is while both produce similar output. The tag is a physical tag, only to display the text in bold, and it does not add any value of importance in the browser. Thí dụ Mã số
đầu ra The tag, on the other hand, is considered as a logical tag, and it is used to inform the browser that the text in the tag has some logical importance. Thí dụ Mã số
đầu ra 2. Đặt văn bản thành chữ nghiêng trong HTML5Just as setting text as Bold, you can use tag and tag to set text as italic on HTML5. Using is for, just like using , physical display of text as italic and the tag while also showing the text as italic on display, lets the browser know that it has semantic importance. Thí dụ Mã số
đầu ra 3. Đánh dấu văn bản bằng mã HTMLIn situations where you want to highlight some text with a highlighter effect, the tag can be used; with default CSS, the tag makes the background of text as yellow, helping you grab a visitor’s attention on that text easily. Thí dụ Mã số
đầu ra 4. Gạch dưới văn bản trong HTMLThe HTML tag can be used to add an underline in the text. Be careful not to use underlining with blue text as it may confuse visitors that the text is a link. Thí dụ Mã số
đầu ra 5. Văn bản có gạch ngangIn cases where you need to draw a horizontal line through the text, tag Thí dụ Mã số
đầu ra 6. Viết bằng phông chữ Monospace trong HTMLUsing Monospace can be useful in situations where you want to quote something or you want to display some code in the browser. The Monospace code, as the name suggests, makes the width of every character the same. To get it on a browser, we have to use the tag. Thí dụ Mã số
|