HTML Headings (Ti�u �?)
Headings (Ti�u �?) ��?c �?nh ngh?a v?i th? <h1> �?n <h6> .
Ti�u �? l� r?t quan tr?ng
- S? d?ng c�c HTML headings cho ti�u �?. Kh�ng s? d?ng c�c ti�u �? �? l�m cho v�n b?n BIG ho?c bold.
- C�ng c? t?m ki?m s? d?ng c�c ti�u �? c?a b?n �? thu th?p ch? s? c?u tr�c v� n?i dung c?a c�c trang web c?a b?n.
- Ng�?i d�ng l�?t c�c trang c?a b?n b?i c�c ti�u �? c?a n�. �i?u quan tr?ng l� s? d?ng ti�u �? �? hi?n th? c?u tr�c t�i li?u.
- Ti�u �? h1 n�n l� ti�u �? ch�nh, ti?p theo ti�u �? h2, h3 th? �t quan tr?ng h�n.
HTML Horizontal Rules (Quy t?c HTML theo chi?u ngang)
- C�c tag <hr> t?o ra m?t d?ng ngang trong m?t trang HTML.
- C�c y?u t? hr c� th? ��?c s? d?ng �? ph�n t�ch n?i dung ri�ng bi?t:
Th? <head>
<head> ch?a d? li?u meta. D? li?u meta kh�ng ��?c hi?n th?.
<head> ��?c �?t gi?a tag <html> v� th? <body>:
HTML meta l� d? li?u v? c�c t�i li?u HTML.
Th? <title>
Th? <title> s? kh�ng ��?c hi?n th? trong t�i li?u, nh�ng c� th? ��?c hi?n th? trong tab tr?nh duy?t.
Th? <meta>
Th? <meta> c� th? ��?c s? d?ng �? x�c �?nh c�c b? k? t?, v� c�c th�ng tin kh�c v? c�c t�i li?u HTML.
More Meta Elements
HTML <style> ��?c s? d?ng �? x�c �?nh ki?u CSS n?i b?.
C�c <link> ph?n t? HTML ��?c s? d?ng �? x�c �?nh ki?u CSS b�n ngo�i.
M?o HTML - L�m th? n�o �? xem HTML Source
B?n �? bao gi? nh?n th?y m?t trang Web v� t? h?i "Hey! L�m sao h? l�m �i?u ��?"
�? t?m hi?u, k�ch chu?t ph?i v�o trang v� ch?n "View Page Source" (trong Chrome) ho?c "View Source" (trong IE), ho?c t��ng t? trong tr?nh duy?t kh�c. �i?u n�y s? m? ra m?t c?a s? ch?a m? HTML c?a trang.
Th? HTML tham kh?o
D?ch v� bi�n t?p t? w3schools b?i Qu? L? - VHB Group
Headings (Ti�u �?) ��?c �?nh ngh?a v?i th? <h1> �?n <h6> .
<h1>This is a heading</h1>L�u ?: C�c tr?nh duy?t s? t? �?ng th�m m?t s? kh�ng gian tr?ng (l?) tr�?c v� sau khi t?ng nh�m ti�u �?.
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Ti�u �? l� r?t quan tr?ng
- S? d?ng c�c HTML headings cho ti�u �?. Kh�ng s? d?ng c�c ti�u �? �? l�m cho v�n b?n BIG ho?c bold.
- C�ng c? t?m ki?m s? d?ng c�c ti�u �? c?a b?n �? thu th?p ch? s? c?u tr�c v� n?i dung c?a c�c trang web c?a b?n.
- Ng�?i d�ng l�?t c�c trang c?a b?n b?i c�c ti�u �? c?a n�. �i?u quan tr?ng l� s? d?ng ti�u �? �? hi?n th? c?u tr�c t�i li?u.
- Ti�u �? h1 n�n l� ti�u �? ch�nh, ti?p theo ti�u �? h2, h3 th? �t quan tr?ng h�n.
HTML Horizontal Rules (Quy t?c HTML theo chi?u ngang)
- C�c tag <hr> t?o ra m?t d?ng ngang trong m?t trang HTML.
- C�c y?u t? hr c� th? ��?c s? d?ng �? ph�n t�ch n?i dung ri�ng bi?t:
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
Th? <head>
<head> ch?a d? li?u meta. D? li?u meta kh�ng ��?c hi?n th?.
<head> ��?c �?t gi?a tag <html> v� th? <body>:
<!DOCTYPE html>
<html>
<head>
<title>Qu? L? - VHB Group</title>
<meta charset="UTF-8">
</head>
<body>
<p>The HTML head element contains meta data.</p>
<p>Meta data is data about the HTML document.</p>
</body>
</html>
HTML meta l� d? li?u v? c�c t�i li?u HTML.
Th? <title>
Th? <title> s? kh�ng ��?c hi?n th? trong t�i li?u, nh�ng c� th? ��?c hi?n th? trong tab tr?nh duy?t.
Th? <meta>
Th? <meta> c� th? ��?c s? d?ng �? x�c �?nh c�c b? k? t?, v� c�c th�ng tin kh�c v? c�c t�i li?u HTML.
More Meta Elements
HTML <style> ��?c s? d?ng �? x�c �?nh ki?u CSS n?i b?.
C�c <link> ph?n t? HTML ��?c s? d?ng �? x�c �?nh ki?u CSS b�n ngo�i.
M?o HTML - L�m th? n�o �? xem HTML Source
B?n �? bao gi? nh?n th?y m?t trang Web v� t? h?i "Hey! L�m sao h? l�m �i?u ��?"
�? t?m hi?u, k�ch chu?t ph?i v�o trang v� ch?n "View Page Source" (trong Chrome) ho?c "View Source" (trong IE), ho?c t��ng t? trong tr?nh duy?t kh�c. �i?u n�y s? m? ra m?t c?a s? ch?a m? HTML c?a trang.
Th? HTML tham kh?o
D?ch v� bi�n t?p t? w3schools b?i Qu? L? - VHB Group
HTML 6 - HTML Headings
4/
5
Oleh
Unknown