<!DOCTYPE html>
	<html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
	<head>
<title>Bài 6. Tiêu đề trong HTML</title>
<meta name="description" content="Bài 6. Tiêu đề trong HTML - Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;tinhocdct.xyz&#x002F;savefile&#x002F;tin-cong-nghe&#x002F;bai-6-tieu-de-trong-html-386.html">
<meta name="author" content="TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG">
<meta name="copyright" content="TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG [webmaster@tinhocdct.xyz]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Bài 6. Tiêu đề trong HTML">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;tinhocdct.xyz&#x002F;savefile&#x002F;tin-cong-nghe&#x002F;bai-6-tieu-de-trong-html-386.html">
<meta property="og:site_name" content="TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG">
<meta property="og:url" content="https://tinhocdct.xyz/tin-cong-nghe/bai-6-tieu-de-trong-html-386.html">
<link rel="shortcut icon" href="https://tinhocdct.xyz/favicon.ico">
<link rel="canonical" href="https://tinhocdct.xyz/tin-cong-nghe/bai-6-tieu-de-trong-html-386.html">
<link rel="alternate" href="https://tinhocdct.xyz/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/tin-tuc/" title="Tin Tức - TIN TỨC" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/thong-cao-bao-chi/" title="Tin Tức - THÔNG BÁO" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/ban-tin-noi-bo/" title="Tin Tức - BẢN TIN NỘI BỘ" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/tin-cong-nghe/" title="Tin Tức - CÔNG NGHỆ - KHOA HỌC" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/thu-thuat/" title="Tin Tức - THỦ THUẬT" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/tien-ich/" title="Tin Tức - TIỆN ÍCH" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/ai/" title="Tin Tức - AI" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/khoa-hoc/" title="Tin Tức - KHOA HỌC" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/hoat-dong-chuyen-mon/" title="Tin Tức - HOẠT ĐỘNG CHUYÊN MÔN" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/hoat-dong-cong-doan/" title="Tin Tức - CÔNG ĐOÀN" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/hoat-dong-doan-the/" title="Tin Tức - ĐOÀN THỂ" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/tuyen-sinh-huong-nghiep/" title="Tin Tức - TUYỂN SINH - HƯỚNG NGHIỆP" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/tuyen-sinh-2025/" title="Tin Tức - TUYỂN SINH 2025" type="application/rss+xml">
<link rel="alternate" href="https://tinhocdct.xyz/rss/lich-cong-tac-tuan/" title="Tin Tức - Lịch công tác tuần" type="application/rss+xml">
<link rel="preload" as="script" href="https://tinhocdct.xyz/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="https://tinhocdct.xyz/assets/js/language/vi.js">
<link rel="preload" as="script" href="https://tinhocdct.xyz/assets/js/global.js">
<link rel="preload" as="script" href="https://tinhocdct.xyz/themes/default/js/news.js">
<link rel="preload" as="script" href="https://tinhocdct.xyz/themes/default/js/main.js">
<link rel="preload" as="script" href="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1816161148536198">
<link rel="preload" as="script" href="https://tinhocdct.xyz/themes/default/js/bootstrap.min.js">
<link rel="StyleSheet" href="https://tinhocdct.xyz/assets/css/font-awesome.min.css">
<link rel="StyleSheet" href="https://tinhocdct.xyz/themes/default/css/bootstrap.non-responsive.css">
<link rel="StyleSheet" href="https://tinhocdct.xyz/themes/default/css/style.css">
<link rel="StyleSheet" href="https://tinhocdct.xyz/themes/default/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://tinhocdct.xyz/themes/default/css/news.css">
<style>
	body{background: #fff;}
</style>
	</head>
	<body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG</h2>
		<p class="pull-right"><a title="TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG" href="https://tinhocdct.xyz/">https://tinhocdct.xyz</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Bài 6. Tiêu đề trong HTML</h1>
		<ul class="list-inline">
			<li>Thứ ba - 30/07/2024 10:25</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
			Tiêu đề (Heading) trong HTML được xác định bằng thẻ đánh dấu từ  tới , trong đó  là tiêu đề quan trọng nhất còn  là ít quan trọng nhất.
		</div>
				<div class="imghome">
			<img alt="Bài 6. Tiêu đề trong HTML" src="https://tinhocdct.xyz/uploads/news/2024_07/html.png" width="460" class="img-thumbnail" />
		</div>
		<div class="clear"></div>
		<div id="bodytext" class="clearfix">
			<p><strong>Ví dụ</strong></p>

<pre id="pre0">
&lt;h1&gt;Ví dụ tiêu đề 1&lt;/h1&gt;&lt;h2&gt;Ví dụ tiêu đề 2&lt;/h2&gt;&lt;h3&gt;Ví dụ tiêu đề 3&lt;/h3&gt;&lt;h4&gt;Ví dụ tiêu đề 4&lt;/h4&gt;&lt;h5&gt;Ví dụ tiêu đề 5&lt;/h5&gt;&lt;h6&gt;Ví dụ tiêu đề 6&lt;/h6&gt;</pre>

<p>Trình duyệt sẽ tự động thêm khoảng trắng (hay chính là lề) trước và sau tiêu đề.</p>

<h3>Tiêu đề rất quan trọng</h3>

<p>Các bộ tìm kiếm sử dụng tiêu đề để gắn chỉ số cho cấu trúc và nội dung các trang web của bạn. Người dùng cũng đọc lướt qua các tiêu đề để hiểu nội dung nên việc dùng tiêu đề để cho thấy cấu trúc văn bản là rất quan trọng.</p>

<p>Tiêu đề&nbsp;<code>&lt;h1&gt;</code>&nbsp;nên được dùng làm tiêu đề chính, sau đó là&nbsp;<code>&lt;h2&gt;</code>&nbsp;và&nbsp;<code>&lt;h3&gt;...</code></p>

<p>Lưu ý là nên dùng tiêu đề HTML để hiển thị tiêu đề chứ không nên dùng vì mục đích làm cho văn bản hiện lớn hơn hay đậm hơn.</p>

<h3>Tiêu đề lớn hơn</h3>

<p>Mỗi tiêu đề trong HTML đều có một kích thước mặc định. Nhưng bạn có thể thay đổi kích thước này bằng thuộc tính&nbsp;<code>style,</code>&nbsp;dùng đặc tính&nbsp;<code>font-size</code>&nbsp;của CSS.</p>

<p><strong>Ví dụ</strong></p>

<pre id="pre1">
&lt;h1 style=&quot;font-size:200px;&quot;&gt;Ví dụ tiêu đề 1&lt;/h1&gt;</pre>

<h3>Dùng thước ngang trong HTML</h3>

<p>Thẻ &lt;hr&gt; được dùng để tạo một đường ngang trên trang HTML. Phần tử này dùng để chia nội dung (hoặc cho thấy sự thay đổi) trên một trang HTML.</p>

<p><strong>Ví dụ</strong></p>

<pre id="pre2">
&lt;h1&gt; Ví dụ tiêu đề 1&lt;/h1&gt;&lt;p&gt;Nội dung văn bản 1&lt;/p&gt; &lt;hr&gt;&lt;h1&gt; Ví dụ tiêu đề 2&lt;/h1&gt;&lt;p&gt;Nội dung văn bản 2&lt;/p&gt; &lt;hr&gt;</pre>
<iframe allow="attribution-reporting; run-ad-auction" allowtransparency="true" aria-label="Advertisement" browsingtopics="true" data-google-container-id="a!2" data-google-query-id="CKex8vT7zocDFWVUwgUdSUYJWg" data-load-complete="true" frameborder="0" height="0" hspace="0" id="aswift_1" marginheight="0" marginwidth="0" name="aswift_1" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9275417305531302&amp;output=html&amp;h=174&amp;slotname=2079243249&amp;adk=4143098099&amp;adf=95499168&amp;pi=t.ma~as.2079243249&amp;w=694&amp;abgtt=5&amp;fwrn=4&amp;lmt=1722347396&amp;rafmt=11&amp;format=694x174&amp;url=https%3A%2F%2Fquantrimang.com%2Fhoc%2Ftieu-de-trong-html-149848&amp;wgl=1&amp;uach=WyJXaW5kb3dzIiwiMTUuMC4wIiwieDg2IiwiIiwiMTI3LjAuNjUzMy43MyIsbnVsbCwwLG51bGwsIjY0IixbWyJOb3QpQTtCcmFuZCIsIjk5LjAuMC4wIl0sWyJHb29nbGUgQ2hyb21lIiwiMTI3LjAuNjUzMy43MyJdLFsiQ2hyb21pdW0iLCIxMjcuMC42NTMzLjczIl1dLDBd&amp;dt=1722349508014&amp;bpp=1&amp;bdt=115&amp;idt=78&amp;shv=r20240725&amp;mjsv=m202407250101&amp;ptt=9&amp;saldr=aa&amp;abxe=1&amp;cookie=ID%3D9355174c58565e6d%3AT%3D1717298287%3ART%3D1722349079%3AS%3DALNI_MbdSnjK_kj9JvFXz95oJ80qIGB_1Q&amp;gpic=UID%3D00000e3f28fe26e7%3AT%3D1717298287%3ART%3D1722349079%3AS%3DALNI_MYSvfa-VuTUKxFCE-_AZzT_hPJiIA&amp;eo_id_str=ID%3D5da9184bb49a16b0%3AT%3D1717298287%3ART%3D1722349079%3AS%3DAA-AfjYtx9418Nf_lEAoYiHDE8KW&amp;prev_fmts=1048x280&amp;correlator=4089336948162&amp;frm=20&amp;pv=1&amp;rplot=4&amp;u_tz=420&amp;u_his=8&amp;u_h=900&amp;u_w=1440&amp;u_ah=852&amp;u_aw=1440&amp;u_cd=24&amp;u_sd=2.5&amp;dmc=8&amp;adx=46&amp;ady=1753&amp;biw=1138&amp;bih=612&amp;scr_x=0&amp;scr_y=0&amp;eid=44759876%2C44759927%2C44759842%2C44795922%2C95334524%2C95334828%2C95337868%2C95338228%2C95338242%2C95338257%2C95335248%2C31084185%2C95336266%2C31078663%2C31078665%2C31078668%2C31078670&amp;oid=2&amp;pvsid=30491220671227&amp;tmod=2105044387&amp;uas=0&amp;nvt=1&amp;ref=https%3A%2F%2Fquantrimang.com%2Fhoc%2Fcac-thuoc-tinh-trong-html-149845&amp;fc=896&amp;brdim=0%2C0%2C0%2C0%2C1440%2C0%2C1440%2C852%2C1152%2C612&amp;vis=1&amp;rsz=%7C%7CoEebr%7C&amp;abl=CS&amp;pfx=0&amp;fu=128&amp;bc=31&amp;bz=1.25&amp;td=1&amp;tdf=2&amp;psd=W251bGwsbnVsbCxudWxsLDNd&amp;nt=1&amp;ifi=2&amp;uci=a!2&amp;btvi=1&amp;fsb=1&amp;dtd=87" tabindex="0" title="Advertisement" vspace="0" width="694"></iframe>

<h3>Phần tử &lt;head&gt; trong HTML</h3>

<p>Phần tử&nbsp;<code>&lt;head&gt;</code>&nbsp;trong HTML không hề liên quan tới tiêu đề HTML. Nó dùng để chứa siêu dữ liệu (dữ liệu về văn bản HTML). SIêu dữ liệu này sẽ không được hiển thị.</p>

<p>Phần tử&nbsp;<code>&lt;head&gt;</code>&nbsp;được đặt giữa thẻ&nbsp;<code>&lt;html&gt;</code>&nbsp;và thẻ&nbsp;<code>&lt;body&gt;</code></p>

<p><strong>Ví dụ</strong></p>

<pre id="pre3">
&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;Văn bản HTML&lt;/title&gt; &lt;meta charset=&quot;UTF-8&quot;&gt;&lt;/head&gt;&lt;body&gt;…</pre>

<p><strong>Lưu ý:</strong>&nbsp;Siêu dữ liệu thường xác định tên văn bản, bộ kí tự, kiểu, đường dẫn, kịch bản và nhiều thông tin khác.</p>

<h3>Làm sao để xem nguồn HTML?</h3>

<p>Nếu nhìn thấy một trang web rất hay ho và tự hỏi không biết nhà phát triển web đã làm thế nào, bạn hoàn toàn có thể xem mã nguồn HTML của trang web.</p>

<p><strong>Xem mã nguồn HTML của website</strong></p>

<p>Click chuột phải vào bất kì vị trí nào trên trang và chọn&nbsp;<strong>View Page Source</strong>&nbsp;(trên Chrome) hoặc&nbsp;<strong>View Source</strong>&nbsp;(trên IE) hoặc các lựa chọn tương tự trên những trình duyệt khác. Khi đó một cửa sổ mới sẽ mở ra, hiển thị mã nguồn HTML của trang đó.</p>

<p><strong>Kiểm tra các&nbsp;<a href="https://quantrimang.com/hoc/cac-phan-tu-trong-html-149844" title="Các phần tử trong HTML">phần tử HTML</a></strong></p>

<p>Click chuột phải vào một phần tử (hoặc khu vực trống) trên trang và chọn&nbsp;<strong>Inspect</strong>&nbsp;hoặc&nbsp;<strong>Inspect Element</strong>&nbsp;để xem phần tử đó gồm những gì (sẽ có cả HTML và CSS). Bạn có thể chỉnh sửa HTML hoặc CSS nhanh chóng ngay trên bảng&nbsp;<strong>Elements</strong>&nbsp;và&nbsp;<strong>Styles</strong>&nbsp;mới mở ra.</p>

<p>Bài trước: <a href="https://tinhocdct.xyz/tin-cong-nghe/bai-5-cac-thuoc-tinh-trong-html-385.html" target="_blank"><span style="color:rgb(52, 152, 219);">Bài 5.&nbsp;Các thuộc tính trong HTML</span></a></p>

<p>Bài sau: Bài 7. Đoạn văn trong HTML</p>
		</div>
				<div id="author">
						<p>
				<strong>Tác giả bài viết:</strong>
				Thanh Sơn
			</p>
						<p>
				<strong>Nguồn tin:</strong>
				quantrimang.com
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://tinhocdct.xyz/tin-cong-nghe/bai-6-tieu-de-trong-html-386.html" title="Bài 6. Tiêu đề trong HTML">https://tinhocdct.xyz/tin-cong-nghe/bai-6-tieu-de-trong-html-386.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; TỔ TIN HỌC TRƯỜNG THPT ĐỖ CÔNG TƯỜNG
		</div>
		<div id="contact">
			<a href="mailto:webmaster@tinhocdct.xyz">webmaster@tinhocdct.xyz</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://tinhocdct.xyz/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="https://tinhocdct.xyz/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_is_recaptcha=0;</script>
<script src="https://tinhocdct.xyz/assets/js/language/vi.js"></script>
<script src="https://tinhocdct.xyz/assets/js/global.js"></script>
<script src="https://tinhocdct.xyz/themes/default/js/news.js"></script>
<script src="https://tinhocdct.xyz/themes/default/js/main.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1816161148536198"
     crossorigin="anonymous"></script>
<script src="https://tinhocdct.xyz/themes/default/js/bootstrap.min.js"></script>
</body>
</html>