�?nh d?ng ph?n t? HTML
Trong ch��ng tr�?c, b?n �? h?c v? phong c�ch HTML, c�ch s? d?ng thu?c t�nh style c?a HTML.
HTML c?ng x�c �?nh c�c y?u t? �?c bi?t, �? x�c �?nh v�n b?n c� m?t ? ngh?a �?c bi?t.
HTML s? d?ng c�c y?u t? nh� <b> v� <i> �? �?nh d?ng �?u ra, nh� v�n b?n in �?m ho?c in nghi�ng.
C�c y?u t? �?nh d?ng ��?c thi?t k? �? hi?n th? lo?i �?c bi?t c?a v�n b?n:
V�n b?n in �?m
V�n b?n quan tr?ng
V�n b?n in nghi�ng
V�n b?n nh?n m?nh
V�n b?n ��?c ��nh d?u
V�n b?n nh?
V�n b?n �? x�a
V�n b?n ch�n v�o
Ch? s? d�?i
Ch? s? tr�n
�?nh d?ng Bold v� Strong
- Th? <b> x�c �?nh ch? in �?m. B?t �?u b?ng <b> v� k?t th�c b?ng </b>
v� d?:
- Th? <strong> c� t�c d?ng nh?n m?nh v�n b?n b?ng c�ch in �?m v�n b?n ��. B?t �?u b?ng <strong> v� k?t th�c b?ng </strong>
V� d?:
Th? �?nh d?ng Italic v� Emphasized
- Th? �?nh d?ng Italic c� t�c d?ng t?o v�n b?n in nghi�ng. B?t �?u b?ng <i> v� k?t th�c b?n </i>
v� d?:
<!DOCTYPE html>
- Th? �?nh d?ng emphasized c� t�c d?ng nh?n m?nh v�n b?n b?ng c�ch in nghi�ng v�n b?n ��. B?t �?u b?ng <em> v� k?t th�c </em>
- Tr?nh duy?t hi?n th? <strong> nh� <b> v� <em> nh� <i>.
- Tuy nhi�n, c� m?t s? kh�c bi?t trong ? ngh?a c?a c�c th?: <b> v� <i> �?nh ngh?a ch? in �?m v� in nghi�ng, nh�ng <strong> v� <em> c� ngh?a l� c�c v�n b?n l� "quan tr?ng".
�?nh d?ng v�n b?n nh?
Th? <small> x�c �?nh v�n b?n nh?.
V� d?:
Th? ��nh d?u
Th? <mark> �? ��nh d?u v�n b?n:
v� d?:
Th? Deleted
Th? <del> y?u t? �?nh ngh?a x�a (g? b?) v�n b?n.
v� d?:
Th? Inserted
Th? <ins> �?nh ngh?a ch�n (th�m) v�n b?n.
V� d?:
<!DOCTYPE html>
<html>
<body>
<p>Qu? L? <ins>VHB Group</ins>.</p>
</body>
</html>
Th? Subscript (Ch? s? d�?i)
Th? <sub> x�c �?nh ch? s? d�?i
V� d?:
Th? Superscript (Ch? s? tr�n)
Th? <sup> x�c �?nh ch? s? tr�n
V� d?:
D?ch v� bi�n t?p t? w3schools b?i Qu? L? - VHB Group
Trong ch��ng tr�?c, b?n �? h?c v? phong c�ch HTML, c�ch s? d?ng thu?c t�nh style c?a HTML.
HTML c?ng x�c �?nh c�c y?u t? �?c bi?t, �? x�c �?nh v�n b?n c� m?t ? ngh?a �?c bi?t.
HTML s? d?ng c�c y?u t? nh� <b> v� <i> �? �?nh d?ng �?u ra, nh� v�n b?n in �?m ho?c in nghi�ng.
C�c y?u t? �?nh d?ng ��?c thi?t k? �? hi?n th? lo?i �?c bi?t c?a v�n b?n:
V�n b?n in �?m
V�n b?n quan tr?ng
V�n b?n in nghi�ng
V�n b?n nh?n m?nh
V�n b?n ��?c ��nh d?u
V�n b?n nh?
V�n b?n �? x�a
V�n b?n ch�n v�o
Ch? s? d�?i
Ch? s? tr�n
�?nh d?ng Bold v� Strong
- Th? <b> x�c �?nh ch? in �?m. B?t �?u b?ng <b> v� k?t th�c b?ng </b>
v� d?:
<!DOCTYPE html>
<html>
<body>
<p><b>Qu? L? - VHB Group</b></p>
<p>http://quylevhb.blogspot.com/.</p>
</body>
</html>
- Th? <strong> c� t�c d?ng nh?n m?nh v�n b?n b?ng c�ch in �?m v�n b?n ��. B?t �?u b?ng <strong> v� k?t th�c b?ng </strong>
V� d?:
<!DOCTYPE html>
<html>
<body>
<p><strong>Qu? L? - VHB Group</strong></p>
<p>http://quylevhb.blogspot.com/.</p>
</body>
</html>
Th? �?nh d?ng Italic v� Emphasized
- Th? �?nh d?ng Italic c� t�c d?ng t?o v�n b?n in nghi�ng. B?t �?u b?ng <i> v� k?t th�c b?n </i>
v� d?:
<!DOCTYPE html>
<html>
<body>
<p><i>Qu? L? - VHB Group</i></p>
<p>http://quylevhb.blogspot.com/.</p>
</body>
</html>
- Th? �?nh d?ng emphasized c� t�c d?ng nh?n m?nh v�n b?n b?ng c�ch in nghi�ng v�n b?n ��. B?t �?u b?ng <em> v� k?t th�c </em>
<!DOCTYPE html>
<html>
<body>
<p><em>Qu? L? - VHB Group</em></p>
<p>http://quylevhb.blogspot.com/.</p>
</body>
</html>
- Tr?nh duy?t hi?n th? <strong> nh� <b> v� <em> nh� <i>.
- Tuy nhi�n, c� m?t s? kh�c bi?t trong ? ngh?a c?a c�c th?: <b> v� <i> �?nh ngh?a ch? in �?m v� in nghi�ng, nh�ng <strong> v� <em> c� ngh?a l� c�c v�n b?n l� "quan tr?ng".
�?nh d?ng v�n b?n nh?
Th? <small> x�c �?nh v�n b?n nh?.
V� d?:
<!DOCTYPE html>
<html>
<body>
<h2>Qu? L? - <small>VHB Group</small></h2>
</body>
</html>
Th? ��nh d?u
Th? <mark> �? ��nh d?u v�n b?n:
v� d?:
<!DOCTYPE html>
<html>
<body>
<h2><mark>Qu? L?</mark> - VHB Group</h2>
</body>
</html>
Th? Deleted
Th? <del> y?u t? �?nh ngh?a x�a (g? b?) v�n b?n.
v� d?:
<!DOCTYPE html>
<html>
<body>
<p>Qu? L? th�ch m�u <del>�en</del> t�m.</p>
</body>
</html>
Th? Inserted
Th? <ins> �?nh ngh?a ch�n (th�m) v�n b?n.
V� d?:
<!DOCTYPE html>
<html>
<body>
<p>Qu? L? <ins>VHB Group</ins>.</p>
</body>
</html>
Th? Subscript (Ch? s? d�?i)
Th? <sub> x�c �?nh ch? s? d�?i
V� d?:
<!DOCTYPE html>
<html>
<body>
<p>Qu? L? <sub>VHB Group</sub></p>
<p>1<sub>2</sub></p>
</body>
</html>
Th? Superscript (Ch? s? tr�n)
Th? <sup> x�c �?nh ch? s? tr�n
V� d?:
<!DOCTYPE html>
<html>
<body>
<p>Qu? L? <sup>VHB Group</sup></p>
<p>1<sup>2</sup></p>
</body>
</html>
D?ch v� bi�n t?p t? w3schools b?i Qu? L? - VHB Group
HTML 9 - C�c th? �?nh d?ng v�n b?n
4/
5
Oleh
Unknown