<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Tin học 12 - Bài 7 - HTML và cấu trúc trang web</title>
<meta name="description" content="Tin học 12 - Bài 7 - HTML và cấu trúc trang web - Savefile - Hỗ trợ học tập -...">
<meta name="author" content="Lê Tấn Tài">
<meta name="copyright" content="Lê Tấn Tài [letantai2008@gmail.com]">
<meta name="generator" content="NukeViet v4.5">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Tin học 12 - Bài 7 - HTML và cấu trúc trang web">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Hỗ trợ học tập - https&#x3A;&#x002F;&#x002F;letantai.io.vn&#x002F;vi&#x002F;hocvoiai&#x002F;savefile&#x002F;tin-hoc-12&#x002F;tin-hoc-12-bai-7-html-va-cau-truc-trang-web-16.html">
<meta property="og:site_name" content="Lê Tấn Tài">
<meta property="og:url" content="https://letantai.io.vn/vi/hocvoiai/savefile/tin-hoc-12/tin-hoc-12-bai-7-html-va-cau-truc-trang-web-16.html">
<link rel="shortcut icon" href="https://letantai.io.vn/favicon.ico">
<link rel="canonical" href="https://letantai.io.vn/vi/hocvoiai/savefile/tin-hoc-12/tin-hoc-12-bai-7-html-va-cau-truc-trang-web-16.html">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/" title="Hỗ trợ học tập" type="application/rss+xml">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/tin-hoc-12/" title="Hỗ trợ học tập - Tin học 12" type="application/rss+xml">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/tri-tue-nhan-tao/" title="Hỗ trợ học tập - Chủ đề&#x3A; Giới thiệu trí tuệ nhân tạo" type="application/rss+xml">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/ket-noi-mang/" title="Hỗ trợ học tập - Chủ đề&#x3A; Kết nối mạng" type="application/rss+xml">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/tin-hoc-11/" title="Hỗ trợ học tập - Tin học 11" type="application/rss+xml">
<link rel="alternate" href="https://letantai.io.vn/vi/hocvoiai/rss/tin-hoc-10/" title="Hỗ trợ học tập - Tin học 10" type="application/rss+xml">
<link rel="preload" as="style" href="https://letantai.io.vn/assets/css/font-awesome.min.css" type="text/css">
<link rel="preload" as="style" href="https://letantai.io.vn/themes/default/css/bootstrap.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://letantai.io.vn/themes/default/css/style.css" type="text/css">
<link rel="preload" as="style" href="https://letantai.io.vn/themes/default/css/style.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://letantai.io.vn/themes/default/css/news.css" type="text/css">
<link rel="preload" as="style" href="https://letantai.io.vn/themes/default/css/custom.css" type="text/css">
<link rel="preload" as="script" href="https://letantai.io.vn/assets/js/jquery/jquery.min.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/assets/js/language/vi.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/assets/js/DOMPurify/purify3.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/assets/js/global.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/assets/js/site.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/themes/default/js/news.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/themes/default/js/main.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/themes/default/js/custom.js" type="text/javascript">
<link rel="preload" as="script" href="https://letantai.io.vn/themes/default/js/bootstrap.min.js" type="text/javascript">
<link rel="stylesheet" href="https://letantai.io.vn/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://letantai.io.vn/themes/default/css/bootstrap.non-responsive.css">
<link rel="stylesheet" href="https://letantai.io.vn/themes/default/css/style.css">
<link rel="stylesheet" href="https://letantai.io.vn/themes/default/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://letantai.io.vn/themes/default/css/news.css">
<link rel="stylesheet" href="https://letantai.io.vn/themes/default/css/custom.css">
<style type="text/css">
	body{background: #fff;}
</style>
    </head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Lê Tấn Tài</h2>
		<p class="pull-right"><a title="Lê Tấn Tài" href="https://letantai.io.vn/">https://letantai.io.vn</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Tin học 12 - Bài 7 - HTML và cấu trúc trang web</h1>
		<ul class="list-inline">
			<li>Thứ sáu - 24/10/2025 06:08</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">
						<div class="pull-left imghome">
				<img alt="Tin 12 - Bài 7" src="https://letantai.io.vn/assets/hocvoiai/2025_11/avatin12bai7.jpg" width="100" class="img-thumbnail" />
								<p>
					<em>Tin 12 - Bài 7</em>
				</p>
			</div>
			Tóm tắt bài học: Tin học 12 - Bài 7 - HTML và cấu trúc trang web. Có link trắc nghiệm kiểm tra kiến thức ở cuối bài viết.
		</div>
		<div id="bodytext" class="clearfix">
			<p>&nbsp;</p><p><span style="color:hsl(0,75%,60%);font-size:18px;"><strong>Tóm tắt nội dung bài 7:</strong></span></p><p style="text-align:justify;"><span style="color:hsl(240,75%,60%);"><span lang="VI"><strong>1. TRANG WEB VÀ HTML</strong></span></span></p><p style="text-align:justify;"><i><span lang="VI"><strong>- HTML</strong></span></i><span lang="VI"> là viết tắt của cụm từ Hypertext Markup Language (</span><i><span lang="VI">ngôn ngữ đánh dấu siêu văn bản</span></i><span lang="VI">), là một bộ quy tắc dùng để thiết lập cấu trúc và hiển thị nội dung trang web.</span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;Trang web được thiết lập từ các tệp văn bản thường có phần mở rộng là <strong>.html</strong> hoặc <strong>.htm</strong> được gọi là trang HTML.</span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;Nội dung trên trang HTML bao gồm phần văn bản (text) và các kí tự đánh dấu đặc biệt nằm trong cặp dấu “&lt;”, “&gt;”. Các kí tự này được gọi là thẻ đánh dấu (còn gọi là thẻ HTML hay <strong>tag</strong>).</span></p><p style="text-align:justify;"><span lang="VI">- Một số thẻ đánh dấu HTML trong ví dụ ở Hình 7.1b là &lt;head&gt;, &lt;body&gt;, &lt;h1&gt;, &lt;p&gt;, &lt;div&gt;,…</span></p><p style="text-align:justify;"><span lang="VI"><strong>a) Thẻ đánh dấu HTML</strong></span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;</span><i><span lang="VI"><strong>Khái niệm:</strong></span></i><span lang="VI"> Thẻ đánh dấu HTML (tag) là các thành phần chính tạo thành ngôn ngữ đánh dấu siêu văn bản. Mỗi loại thẻ có một tên riêng và có ý nghĩa nhất định trong định dạng nội dung của trang web.</span></p><p style="text-align:justify;"><span lang="VI">- </span><i><span lang="VI"><strong>Cấu trúc:</strong></span></i><span lang="VI">&nbsp;Thẻ đánh dấu HTML được viết&nbsp;trong cặp dấu “&lt;”, “&gt;”.</span></p><table class="table content-table" style="border-collapse:collapse;width:669px;" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td style="background-color:rgb(149, 220, 247);border-color:windowtext;padding:0px 7px;width:50px;" width="50"><p style="text-align:center;"><span style="color:black;font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI"><strong>Thẻ</strong></span></span></p></td><td style="background-color:rgb(149, 220, 247);border-bottom-style:solid;border-color:windowtext;border-left-style:none;border-right-style:solid;border-top-style:solid;padding:0px 7px;width:184px;" width="184"><p style="text-align:center;"><span style="color:black;font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI"><strong>Ý nghĩa thẻ</strong></span></span></p></td><td style="background-color:rgb(149, 220, 247);border-bottom-style:solid;border-color:windowtext;border-left-style:none;border-right-style:solid;border-top-style:solid;padding:0px 7px;width:236px;" width="236"><p style="text-align:center;"><span style="color:black;font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI"><strong>Mã HTML</strong></span></span></p></td><td style="background-color:rgb(149, 220, 247);border-bottom-style:solid;border-color:windowtext;border-left-style:none;border-right-style:solid;border-top-style:solid;padding:0px 7px;width:198px;" width="198"><p style="text-align:center;"><span style="color:black;font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI"><strong>Hiển thị trên trình duyệt</strong></span></span></p></td></tr><tr><td style="border-bottom-style:solid;border-color:windowtext;border-left-style:solid;border-right-style:solid;border-top-style:none;padding:0px 7px;width:50px;" width="50"><p style="text-align:center;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">p</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:184px;" width="184"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">Đoạn văn bản</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:236px;" width="236"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">&lt;p&gt;Đây là đoạn văn bản.&lt;/p&gt;</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:198px;" width="198"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">Đây là đoạn văn bản.</span></span></p></td></tr><tr><td style="border-bottom-style:solid;border-color:windowtext;border-left-style:solid;border-right-style:solid;border-top-style:none;padding:0px 7px;width:50px;" width="50"><p style="text-align:center;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">h1</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:184px;" width="184"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">Tiêu đề 1 của văn bản</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:236px;" width="236"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI">&lt;h1&gt;Đây là tiêu đề 1&lt;/h1&gt;</span></span></p></td><td style="border-bottom:1px solid windowtext;border-left-style:none;border-right:1px solid windowtext;border-top-style:none;padding:0px 7px;vertical-align:top;width:198px;" width="198"><p style="text-align:justify;"><span style="font-family:&#039;Aptos&#039;,sans-serif;"><span lang="VI"><strong>Đây là tiêu đề 1</strong></span></span></p></td></tr></tbody></table><p style="text-align:justify;"><span lang="VI">- </span><i><span lang="VI"><strong>Lưu ý:</strong></span></i></p><p style="text-align:justify;"><span lang="VI">+ Tên thẻ HTML không phân biệt chữ hoa, chữ thường nhưng mặc định tên thẻ được viết chữ thường.</span></p><p style="text-align:justify;"><span lang="VI">+ Các thẻ có thể lồng nhau.</span></p><p style="text-align:justify;"><i><span lang="VI">Ví dụ:</span></i><span lang="VI"> Thẻ &lt;em&gt; được lồng bên trong thẻ &lt;p&gt;:</span></p><p style="text-align:justify;"><span><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image.png" width="310" height="11" v:shapes="_x0000_i1031" uploadprocessed="true" /></span></p><p style="text-align:justify;"><span lang="VI">+ Mỗi thẻ có thể đi kèm các thông tin thuộc tính của thẻ.&nbsp;</span></p><p style="text-align:justify;"><i><span lang="VI">Ví dụ:</span></i><span lang="VI"> Thuộc tính màu được gán thêm cho thẻ &lt;p&gt;, do đó toàn bộ đoạn văn bản này có màu đỏ khi hiển thị trên trình duyệt:</span></p><p style="text-align:justify;"><span><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_1.png" width="305" height="12" v:shapes="_x0000_i1030" uploadprocessed="true" /></span></p><p style="text-align:justify;"><span lang="VI">+ Phần lớn các thẻ đều là thẻ đôi, tức là có thể bắt đầu (opening tag) và thẻ kết thúc (closing tag). Vị trí kết thúc thẻ có thêm dấu “/” chẳng hạn &lt;/p&gt;.</span></p><p style="text-align:justify;"><span lang="VI">+ Có một số loại thẻ đơn, tức là chỉ có thẻ bắt đầu. Các thẻ đơn thường có dạng &lt;tên thẻ&gt; hoặc &lt;tên thẻ/&gt;, ví dụ &lt;hr/&gt; (dòng kẻ ngang), &lt;br/&gt; (ngắt xuống dòng),…</span></p><p style="text-align:justify;"><span lang="VI">+ HTML và trình duyệt không nhận biết được nhiều dấu cách. Nếu gõ nhiều dấu cách máy sẽ hiểu là chỉ có một dấu cách. Trình duyệt cũng không nhận biết dấu xuống dòng khi người dùng nhấn phím <strong>Enter&nbsp;</strong>trong quá trình soạn thảo.</span></p><p style="text-align:justify;"><span lang="VI"><strong>b) Phần tử HTML</strong></span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;</span><i><span lang="VI"><strong>Khái niệm:</strong></span></i><span lang="VI"> </span><i><span lang="VI">Phần tử HTML</span></i><span lang="VI"> (element) là khái niệm cơ bản của trang HTML. Thông thường, một phần tử được định nghĩa bởi thẻ bắt đầu, thẻ kết thúc và phần nội dung nằm giữa cặp thẻ này.</span></p><p style="text-align:justify;"><span><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_5.png" width="307" height="70" v:shapes="_x0000_i1029" uploadprocessed="true" /></span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;</span><i><span lang="VI"><strong>Lưu ý:</strong></span></i><span lang="VI"> Các thẻ đơn cùng với nội dung của nó cũng được gọi là phần tử HTML.</span></p><p style="text-align:justify;"><span style="font-family:&#039;Times New Roman&#039;,serif;font-size:12.0pt;"><span style="position:relative;top:2.5pt;" lang="EN-GB"><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_2.png" width="14" height="19" v:shapes="_x0000_i1025" uploadprocessed="true" /></span></span><span lang="VI"> Phần tử HTML có thể hiểu là toàn bộ phần thẻ và nội dung của thẻ. Mỗi tệp HTML là tập hợp các&nbsp;<strong>phần tử HTML</strong>.</span></p><p style="text-align:justify;"><span lang="VI">-&nbsp;</span><i><span lang="VI"><strong>Ý nghĩa:</strong></span></i><span lang="VI"> Các phần tử HTML đóng vai trò quan trọng tạo nên cấu trúc và nội dung của trang web.</span></p><p style="text-align:justify;"><span lang="VI">- Trong ví dụ ở </span><i><span lang="VI">Hình 7.1b</span></i><span lang="VI">:</span></p><p style="text-align:justify;"><span lang="VI">+ Hai phần tử &lt;head&gt; và &lt;body&gt; rời nhau.</span></p><p style="text-align:justify;"><span lang="VI">+ Phần tử &lt;div&gt; chứa bên trong bốn phần tử HTML khác.</span></p><p style="text-align:justify;"><span style="font-family:&#039;Times New Roman&#039;,serif;font-size:12.0pt;"><span style="position:relative;top:2.5pt;" lang="EN-GB"><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_3.png" width="14" height="19" v:shapes="_x0000_i1025" uploadprocessed="true" /></span></span><span lang="VI"> Các phần tử HTML có thể độc lập, rời nhau hoặc lồng nhau.</span></p><p style="text-align:justify;"><i><span lang="VI"><strong>- Lưu ý:</strong></span></i></p><p style="text-align:justify;"><span lang="VI">+ Dòng đầu tiên của mỗi tệp HTML có dạng &lt;!DOCTYPE html&gt; có vai trò thông báo kiểu của tệp là html và không được xem là phần tử HTML.</span></p><p style="text-align:justify;"><span lang="VI">+ Phần tử HTML đặc biệt có ý nghĩa chú thích trong tệp HTML có dạng:</span></p><p style="text-align:justify;"><span><img class="image_resized" style="aspect-ratio:307/19;width:36.38%;" src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_6.png" width="307" height="19" v:shapes="_x0000_i1028" uploadprocessed="true" /></span></p><p style="text-align:justify;"><span style="color:hsl(240,75%,60%);"><span lang="VI"><strong>2. CẤU TRÚC CƠ BẢN CỦA MỘT TỆP HTML</strong></span></span></p><p style="text-align:justify;"><span style="color:black;"><span lang="VI">- Mỗi tệp HTML bao gồm nhiều phần tử HTML, các phần tử HTML có thể lồng nhau.</span></span></p><p style="text-align:justify;"><span style="color:black;"><span lang="VI">- Quan hệ lồng nhau giữa các phần tử HTML có thể hình dung như quan hệ cha – con hay quan hệ giữa các nút của một sơ đồ hình cây.</span></span></p><p style="text-align:center;"><span style="color:black;"><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_8.png" width="405" height="202" v:shapes="_x0000_i1027" uploadprocessed="true" /></span></p><p style="text-align:center;"><span style="color:black;"><i><span lang="VI">Hình 7.3. Cấu trúc cơ bản của một tệp HTML</span></i></span></p><ol style="padding-left:19px;"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e77757924d836ec6e945b2c7062170768"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Dòng đầu tiên, <strong>&lt;!DOCTYPE html&gt;</strong> có thể coi là dòng khai báo html của tệp.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="ee1b556af9db5668688f92d47697d2463"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phần tử <strong>&lt;html&gt;</strong>:</span></span></p></li></ol><ul style="padding-left:38px;"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e7f6c1214f65a39fefe2853b1d5970f7b"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Là bắt buộc, là phần tử gốc và chứa tất cả các phần tử HTML còn lại của trang web.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="ed827e74e01fa4e4030c767118917a5e1"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Là phần tử gốc (root) trong sơ đồ hình cây HTML.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e4f6abc759676bfff23ad3119ca6147d0"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Thường chứa hai phần tử con <strong>&lt;head&gt;</strong> và <strong>&lt;body&gt;</strong>.</span></span></p></li></ul><ol style="padding-left:19px;" start="3"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e41f879a78cb0a951e211c6ab3268753f"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phần tử <strong>&lt;head&gt;</strong>:</span></span></p></li></ol><ul style="padding-left:38px;"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e49578a753b1ee2a24674246da55e57ca"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Chứa các phần tử có liên quan chung đến toàn bộ trang web.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e4859d3363f64da43633b096ae16d4fa7"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Trong <strong>&lt;head&gt;</strong> thường có phần tử <strong>&lt;title&gt;</strong> và một số phần tử khác như <strong>&lt;meta&gt;</strong>, <strong>&lt;style&gt;</strong> và <strong>&lt;script&gt;</strong>.</span></span></p></li></ul><ol style="padding-left:19px;" start="4"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e7eae47f47276477af36b24de4a5b1962"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phần tử <strong>&lt;body&gt;</strong> chứa tất cả các phần tử còn lại là thông tin của trang web.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e029ad00997bae27974037db2736c0c00"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phần tử <strong>&lt;meta&gt;</strong>:</span></span></p></li></ol><ul style="padding-left:38px;"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="edacd9f8fc130d5a58e3ab40557e7662b"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Nằm trong phần tử <strong>&lt;head&gt;</strong>.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="edee787491580213c9647dbbeeb644b38"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Mô tả các thông tin bổ sung của trang web như cách mã hoá Unicode, từ khoá dùng để tìm kiếm trang, tên tác giả trang web.</span></span></p><p style="text-align:justify;"><span style="color:black;"><i><span lang="VI">Ví dụ:</span></i><span lang="VI"> Trong Hình 7.3, phần tử </span><img class="image_resized" style="aspect-ratio:264/17;width:26.78%;" src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_4.png" width="264" height="17" v:shapes="_x0000_i1026" uploadprocessed="true" /></span></p><p style="text-align:justify;"><span style="color:black;"><span lang="VI">mô tả cách mã hoá văn bản trên trang web theo mã UTF-8.</span></span></p></li></ul><ol style="padding-left:19px;" start="6"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e8e1ea4d6928e9a61fa7a1d9d39d16dec"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phần tử <strong>&lt;title&gt;</strong>:</span></span></p></li></ol><ul style="padding-left:38px;"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="eba3e025c47d5d9a7c7d710f1f344c27f"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Nằm trong phần tử <strong>&lt;head&gt;</strong>.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="efbf3a56539c9d10d1b8144132e3e6023"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Mô tả tên của trang web hiện thời.</span></span></p></li><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="e4baefb0bb09eaa5b59f989e475bf4495"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Phải là văn bản thường và không được phép chứa các phần tử con.</span></span></p></li></ul><ol style="padding-left:19px;" start="7"><li class="ck-list-marker-color" style="--ck-content-list-marker-color:black;" data-list-item-id="ec5deca728ef1d2024da8f79a27551557"><p style="text-align:justify;"><span style="color:black;"><span lang="VI">Nhóm các thẻ định dạng văn bản thường dùng là các thẻ tiêu đề theo thứ tự giảm cấp dần là <strong>&lt;h1&gt;</strong>, <strong>&lt;h2&gt;</strong>, <strong>&lt;h3&gt;</strong>, <strong>&lt;h4&gt;</strong>, <strong>&lt;h5&gt;</strong>, <strong>&lt;h6&gt;</strong>. Thẻ <strong>&lt;p&gt;</strong> mô tả một đoạn văn bản hoàn chỉnh.</span></span></p></li></ol><p style="margin-left:.25pt;text-align:justify;"><span style="color:black;"><span lang="VI">- </span><i><span lang="VI"><strong>Lưu ý:</strong></span></i><span lang="VI"> HTML không nhận biết kí tự xuống dòng (nhấn phím <strong>Enter</strong>) để kết thúc đoạn văn bản (paragraph) như các phần mềm soạn thảo văn bản thông thường.</span></span></p><p style="margin-left:.25pt;text-align:justify;"><span style="color:black;"><span lang="VI">- Cấu trúc chung của một trang web có thể hình dung như một cây thông tin các phần tử HTML có quan hệ cha con (lồng nhau), nút gốc (root) là phần tử HTML.</span></span></p><p style="margin-left:.25pt;text-align:center;"><span style="color:black;"><img src="https://letantai.io.vn/uploads/hocvoiai/2025_11/image_7.png" width="315" height="136" v:shapes="Picture_x0020_1" uploadprocessed="true" /></span></p><p style="text-align:center;"><span style="color:black;"><i><span lang="VI">Hình 7.4. Cây thông tin của trang web ở Hình 7.2 SGK</span></i></span></p><p>&nbsp;</p><p><strong style="-webkit-text-stroke-width:0px;background-color:rgb(255, 255, 255);box-sizing:border-box;color:rgb(51, 51, 51);font-family:&#039;Helvetica Neue&#039;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">Xem video tóm tắt bài học:</strong></p><div class="nvck-iframe nvck-iframe-responsive" style="padding-bottom:56.25%;" data-iframe-type="auto" data-iframe-width="560" data-iframe-height="315" data-iframe-ratio="16:9"><div class="nvck-iframe-inner"><iframe class="nvck-iframe-element" src="https://www.youtube.com/embed/m7_wcU-Xgao" sandbox="allow-scripts allow-same-origin allow-forms allow-presentation allow-popups" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="true"></iframe></div></div><p>&nbsp;</p><p><strong style="-webkit-text-stroke-width:0px;background-color:rgb(255, 255, 255);box-sizing:border-box;color:rgb(51, 51, 51);font-family:&#039;Helvetica Neue&#039;, Helvetica, Arial, sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;letter-spacing:normal;orphans:2;text-align:start;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;">Trắc nghiệm: (bấm vào link bên dưới để làm bài)</strong></p><p style="text-align:center;"><a target="_blank" rel="noopener noreferrer" href="https://azota.vn/de-thi/gz5yye"><span style="font-size:18px;"><strong>https://azota.vn/de-thi/gz5yye</strong></span></a><span style="font-size:18px;"><strong>&nbsp;</strong></span></p><p><strong>Trắc nghiệm + Đúng sai:</strong></p><p style="text-align:center;"><a target="_blank" rel="noopener noreferrer" href="https://azota.vn/de-thi/jtnqd3"><span style="font-size:18px;"><strong>https://azota.vn/de-thi/jtnqd3</strong></span></a></p><p style="text-align:center;">&nbsp;</p>
		</div>
				<div id="author">
						<p>
				<strong>Tác giả:</strong>
				<a href="https://letantai.io.vn/vi/hocvoiai/author/letantai2025/">letantai2025</a>
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://letantai.io.vn/vi/hocvoiai/savefile/tin-hoc-12/tin-hoc-12-bai-7-html-va-cau-truc-trang-web-16.html" title="Tin học 12 - Bài 7 - HTML và cấu trúc trang web">https://letantai.io.vn/vi/hocvoiai/savefile/tin-hoc-12/tin-hoc-12-bai-7-html-va-cau-truc-trang-web-16.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Lê Tấn Tài
		</div>
		<div id="contact">
			<a href="mailto:letantai2008@gmail.com">letantai2008@gmail.com</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://letantai.io.vn/#">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://letantai.io.vn/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="hocvoiai",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-5,nv_my_abbr="EST",nv_cookie_prefix="nv4",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_recaptcha_ver=2,nv_recaptcha_sitekey="",nv_recaptcha_type="image",XSSsanitize=1;</script>
<script src="https://letantai.io.vn/assets/js/language/vi.js"></script>
<script src="https://letantai.io.vn/assets/js/DOMPurify/purify3.js"></script>
<script src="https://letantai.io.vn/assets/js/global.js"></script>
<script src="https://letantai.io.vn/assets/js/site.js"></script>
<script src="https://letantai.io.vn/themes/default/js/news.js"></script>
<script src="https://letantai.io.vn/themes/default/js/main.js"></script>
<script src="https://letantai.io.vn/themes/default/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://letantai.io.vn",
            "logo": "https://letantai.io.vn/assets/images/logo.png"
        }
        </script>
<script src="https://letantai.io.vn/themes/default/js/bootstrap.min.js"></script>
</body>
</html>