Đề kiểm tra Tin học 12 – Bài 7 Xây dựng trang web HTML – Trường THPT Nguyễn Hữu Thọ

20 questions
Answer key

Exam info

Subject
Tin học
Exam type
High school
Questions
20
Answers
✓ With explanations

Questions (20)

  1. Q 1.

    HTML là viết tắt của cụm từ nào sau đây?

    • A.

      Hyperlinks and Text Markup Language.

    • B.

      Home Tool Markup Language.

    • C.

      HyperText Markup Language.

    • D.

      HyperText Makeup Language.

  2. Q 2.

    Phương án nào sau đây nêu đúng các thành phần của một phần tử (element) HTML?

    • A.

      Thẻ mở, thuộc tính, nội dung và thẻ đóng (nếu có).

    • B.

      Tiêu đề, đoạn văn bản và siêu liên kết.

    • C.

      Thẻ mở, nội dung và thẻ đóng.

    • D.

      Thẻ mở, thẻ đóng và thuộc tính.

  3. Q 3.

    Trong một văn bản HTML cơ bản, thẻ nào sau đây quy định phần chứa thông tin về tiêu đề của trang, siêu dữ liệu và các định dạng CSS?

    • A.
    • B.
    • C.
    • D.
      <!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 4.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Trong các phần mềm sau đây, phần mềm nào được sử dụng phổ biến để soạn thảo văn bản HTML trên máy tính?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Microsoft Word.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Sublime Text.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Adobe Photoshop.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Google Chrome.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 5.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thẻ HTML nào sau đây dùng để xác định tiêu đề sẽ được hiển thị trên thanh tiêu đề của một trang web trên trình duyệt?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><meta><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><head><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><header><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><title><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 6.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Để hiển thị văn bản HTML trên trình duyệt web, cần làm công việc nào sau đây?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Dịch mã nguồn sang mã nhị phân.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Chạy trực tiếp file HTML trên trình duyệt.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Đưa mã nguồn vào máy chủ web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Sửa hết lỗi cú pháp trong văn bản HTML.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 7.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Cho văn bản HTML sau đây:</p> <html> <head> <title>Tiêu đề văn bản

      Đây là tiêu đề lớn nhất.

      Phương án nào sau đây nêu đúng lỗi có trong văn bản trên?
      • A.

        Thẻ đặt trong thẻ <head> không đúng.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thiếu kí tự / trong thẻ đóng của tiêu đề <h1>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thẻ <body> khai báo thừa.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thẻ mở <h1> và thẻ đóng </h2> không tương ứng.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 8.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thuộc tính nào sau đây xác định URL mà siêu liên kết (tạo bởi thẻ <a>) sẽ chuyển đến khi được nhấn chuột?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">url</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">href</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">link</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">src</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 9.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thuộc tính HTML nào sau đây chỉ định văn bản thay thế cho hình ảnh, nếu hình ảnh không thể hiển thị?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">title</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">src</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">alt</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">longdesc</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 10.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Tại một trang web, để tạo một liên kết đến một trang web khác, URL của trang đó sẽ được đặt ở vị trí nào sau đây?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Giữa các thẻ <a> và </a>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Giữa các thẻ <link> và </link>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Trong thuộc tính href của thẻ <a>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Trong thuộc tính src của thẻ <a>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 11.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thẻ <iframe> trong HTML được sử dụng để làm công việc nào dưới đây?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Hiển thị hình ảnh.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Nhúng nội dung từ trang web khác vào trang hiện tại.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Tạo biểu mẫu nhập liệu.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Định dạng văn bản.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 12.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Thuộc tính của một phần tử HTML được sử dụng để thực hiện công việc nào sau đây?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Xác định kiểu font của văn bản.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Định dạng và kiểm soát cách hiển thị của phần tử.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Chứa nội dung của phần tử.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Chèn CSS để tạo hiệu ứng cho phần tử.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 13.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Điều gì sau đây là yêu cầu cần thiết để sử dụng phần mềm soạn thảo HTML trực tuyến?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Tải và cài đặt phần mềm trên máy tính cá nhân.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Kết nối Internet.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Trình duyệt web hiện đại.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Kiến thức chuyên môn về lập trình HTML.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 14.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Khi tạo bảng trong HTML, phần tử nào sau đây được sử dụng để xác định một hàng trong bảng?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><row><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><td><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><tr><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><th><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 15.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Một tệp HTML cơ bản thường bắt đầu bằng khai báo <!DOCTYPE html> và cặp thẻ nào là thành phần cấu trúc chính của tài liệu HTML?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><head> và <body>.<!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><title> và <meta>.<!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><link> và <script>.<!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><html> và <body>.<!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 16.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Trong cấu trúc của một tài liệu HTML, phần tử <head> có vai trò chính là gì?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Chứa tất cả nội dung hiển thị trên trang web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Định nghĩa tiêu đề trang web hiển thị trên trình duyệt.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Chứa các thông tin siêu dữ liệu (metadata) và các liên kết tới tệp bên ngoài (CSS, JS).</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Định nghĩa phần thân của trang.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 17.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Điều nào sau đây mô tả đúng nhất về cách một phần mềm soạn thảo HTML hoạt động?</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[0--><ul class="grid gap-1 sm:grid-cols-2"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Nó tự động chuyển đổi văn bản thành hình ảnh để hiển thị trên trình duyệt.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Nó yêu cầu kết nối Internet liên tục để hoạt động.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Nó giúp người dùng viết mã HTML và thường có các tính năng hỗ trợ như tô màu cú pháp, tự động hoàn thành, kiểm tra lỗi cú pháp.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D.</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Nó chỉ có thể chỉnh sửa các tệp HTML được tạo ra bởi chính phần mềm đó.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 18.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Khi xây dựng một trang web, việc hiểu rõ các thành phần cơ bản của HTML là rất quan trọng.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[1--><ul class="space-y-1"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">thẻ <body> của một tài liệu HTML chứa tất cả các nội dung chính sẽ hiển thị trên trình duyệt web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">khai báo <!DOCTYPE html> là một thẻ HTML được dùng để định nghĩa tiêu đề của trang web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">phần tử <head> thường chứa các thông tin như tiêu đề trang, mô tả và liên kết đến các tệp CSS để định dạng.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">HTML là viết tắt của cụm từ Hyperlinks Text Markup Language.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 19.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Các thẻ và thuộc tính trong HTML có vai trò quan trọng trong việc định dạng và cấu trúc nội dung trên trang web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[1--><ul class="space-y-1"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">thuộc tính href trong thẻ <a> được sử dụng để chỉ định địa chỉ của liên kết mà người dùng sẽ chuyển đến khi nhấp vào.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">thẻ <div> được dùng để tạo một đoạn văn bản mới trên trang web, tương tự như thẻ <p>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">để làm nổi bật hoặc nhấn mạnh một phần văn bản, có thể sử dụng các thẻ như <strong> hoặc <em>.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">giá trị của thuộc tính id của một phần tử HTML phải là duy nhất trong toàn bộ tài liệu HTML.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--[-1--><!--]--> <li class="flex gap-3 text-sm"><span class="shrink-0 font-semibold">Q 20.</span> <div class="min-w-0 flex-1 space-y-1.5"><div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Việc lựa chọn công cụ và hiểu biết về quy trình xây dựng trang web sẽ giúp bạn tạo ra một sản phẩm hiệu quả.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----> <!--[-1--><!--]--> <!--[1--><ul class="space-y-1"><!--[--><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">A)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">để viết mã HTML, An có thể sử dụng các phần mềm soạn thảo văn bản như Notepad++.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">B)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">phần “Thân trang” (<body>) của một trang web thường chứa các nội dung chính hiển thị cho người dùng, bao gồm tiêu đề, đoạn văn bản và hình ảnh.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">C)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">Google Sites là một công cụ giúp người dùng xây dựng trang web trực tuyến mà không đòi hỏi kiến thức sâu về lập trình HTML.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><li class="flex gap-1.5 text-muted-foreground"><span class="shrink-0">D)</span> <div class="max-w-none prose dark:prose-invert wrap-break-word prose-sm svelte-omnfyk"><!----><p class="text-foreground leading-relaxed">để kiểm tra kết quả hiển thị của mã HTML sau khi soạn thảo, người dùng phải sử dụng một trình duyệt web.</p><!----></div> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----></li><!--]--></ul><!--]--></div></li><!--]--></ol> <!--[-1--><!--]--> <!--[0--><div class="pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-linear-to-t from-card to-transparent"></div><!--]--></div> <div class="mt-3 flex flex-wrap items-center justify-between gap-2"><div class="flex flex-wrap items-center gap-2"><!--[-1--><button data-slot="button" class="focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 border bg-clip-padding font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5" type="button"><!---->Show all 20 questions<!----></button><!--]--><!----></div> <p class="text-xs text-muted-foreground">Answers and explanations are in <button class="underline">Practice</button> mode.</p></div></section><!--]--> <!--[0--><section class="mt-6 rounded-xl border bg-card p-5"><h2 class="mb-3 text-base font-semibold">Similar Tin học exams</h2> <ul class="grid gap-2 sm:grid-cols-2"><!--[--><li><a href="/exam/de-on-tap-tin-hoc-10-bai-1-den-bai-26-he-dieu-hanh-phan-mem-KJGURq" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Đề ôn tập Tin học 10 – Bài 1 đến Bài 26 (Hệ điều hành, phần mềm nguồn mở, phần cứng, GIMP)</p> <p class="mt-1 text-xs text-muted-foreground">1 Q</p></a></li><li><a href="/exam/de-cuong-tin-hoc-truong-dinh-minh-quan-EDYRx9" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Đề cương Tin học Trương Đình Minh Quân</p> <p class="mt-1 text-xs text-muted-foreground">100 Q</p></a></li><li><a href="/exam/bai-kiem-tra-bai-2-vai-tro-cua-thiet-bi-thong-minh-va-tin-ho-2fDY-A" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Bài kiểm tra Bài 2: Vai trò của thiết bị thông minh và tin học đối với xã hội</p> <p class="mt-1 text-xs text-muted-foreground">30 Q</p></a></li><li><a href="/exam/de-thi-giua-ki-tin-hoc-lop-10-bai-8-mang-may-tinh-va-interne-MfmXSv" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Đề thi giữa kì Tin học lớp 10 – Bài 8: Mạng máy tính và Internet</p> <p class="mt-1 text-xs text-muted-foreground">2025 · 40 Q · Học viện Tài chính</p></a></li><li><a href="/exam/de-trac-nghiem-tin-hoc-12-bai-1-den-bai-7-tri-tue-nhan-tao-m-nA28f8" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Đề trắc nghiệm Tin học 12 – Bài 1 đến Bài 7 (Trí tuệ nhân tạo, mạng máy tính, giao thức, giao tiếp không gian mạng, HTML)</p> <p class="mt-1 text-xs text-muted-foreground">2026 · 100 Q · THPT Thoại Ngọc Hầu</p></a></li><li><a href="/exam/de-cuong-on-tap-giua-ki-i-mon-tin-hoc-lop-10-25-cau-trac-ngh--SZ3xj" class="block rounded-lg border p-3 text-sm transition-colors hover:bg-muted/60"><p class="line-clamp-2 font-medium">Đề cương ôn tập giữa kì I môn Tin học lớp 10 – 25 câu trắc nghiệm</p> <p class="mt-1 text-xs text-muted-foreground">2026 · 25 Q · THPT Minh Phú</p></a></li><!--]--></ul></section><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!--]--> <!--[--><!--[--><!--[--><!--[--><!--[-1--><!--]--><!--]--><!--]--><!----><!--]--><!--]--><!----></div><!--]--><!--]--><!--]--><!----></div></div><!--]--><!----></div><!----></main><!----><!----></div><!----><!--]--><!--]--><!----> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--><!----><!--]--><!--]--><!--]--><!----> <!--[-1--><!--]--><!--]--> <script> { __sveltekit_q6cuj5 = { base: "", version: "1794991693714", env: {PUBLIC_ALLOW_ANONYMOUS_CHATS:void 0,PUBLIC_STORAGE_BUCKET:"losan-bucket-prod"} }; const element = document.currentScript.parentElement; import("/_app/immutable/entry/start.BgINZLq-.js").then(async (kit) => { kit.init(__sveltekit_q6cuj5); const app = await import("/_app/immutable/entry/app.CZ5Whtjc.js"); kit.start(app, element, { node_ids: [0, 33], data: [{type:"data",data:{localePath:null},uses:{}},{type:"data",data:{subjectPageExists:false,province:null,school:{slug:"thpt-nguyen-huu-tho",vi:"THPT Nguyễn Hữu Thọ",en:"THPT Nguyen Huu Tho"},bracket:null,exam:{year:null,title:"Đề kiểm tra Tin học 12 – Bài 7 Xây dựng trang web HTML – Trường THPT Nguyễn Hữu Thọ",groups:null,school:"THPT Nguyễn Hữu Thọ",bracket:null,outline:null,subject:"Tin học",duration:null,examType:"high-school",questions:[{id:1,text:"HTML là viết tắt của cụm từ nào sau đây?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Hyperlinks and Text Markup Language.",label:"A",correct:false,explanation:"Đã thay 'HyperText' bằng 'Hyperlinks and Text', tức là dịch sai cụm từ gốc."},{text:"Home Tool Markup Language.",label:"B",correct:false,explanation:"Nhầm 'Markup' thành 'Tool' và 'HyperText' thành 'Home', không phải tên đầy đủ của HTML."},{text:"HyperText Markup Language.",label:"C",correct:true,explanation:""},{text:"HyperText Makeup Language.",label:"D",correct:false,explanation:"Viết sai 'Markup' thành 'Makeup' (trang điểm), nên không đúng tên gọi chuẩn."}],section:null,statements:null,explanation:"HTML là viết tắt của HyperText Markup Language: 'HyperText' là văn bản siêu liên kết, 'Markup Language' là ngôn ngữ đánh dấu.",correctAnswer:"C"},{id:2,text:"Phương án nào sau đây nêu đúng các thành phần của một phần tử (element) HTML?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Thẻ mở, thuộc tính, nội dung và thẻ đóng (nếu có).",label:"A",correct:true,explanation:""},{text:"Tiêu đề, đoạn văn bản và siêu liên kết.",label:"B",correct:false,explanation:"Lẫn lộn với các loại nội dung hiển thị trên trang, không phải cấu trúc của phần tử."},{text:"Thẻ mở, nội dung và thẻ đóng.",label:"C",correct:false,explanation:"Bỏ sót thuộc tính, vốn là một thành phần nằm trong thẻ mở."},{text:"Thẻ mở, thẻ đóng và thuộc tính.",label:"D",correct:false,explanation:"Liệt kê đủ thẻ và thuộc tính nhưng bỏ qua phần nội dung nằm giữa thẻ mở và thẻ đóng."}],section:null,statements:null,explanation:"Một phần tử HTML gồm thẻ mở (kèm thuộc tính đặt bên trong thẻ mở), nội dung và thẻ đóng; thẻ đóng có thể không có với một số thẻ.",correctAnswer:"A"},{id:3,text:"Trong một văn bản HTML cơ bản, thẻ nào sau đây quy định phần chứa thông tin về tiêu đề của trang, siêu dữ liệu và các định dạng CSS?",type:"multiple-choice",images:null,groupId:null,options:[{text:"\u003Cheader>",label:"A",correct:false,explanation:"Nhầm với thẻ header, vốn dùng để chứa phần tiêu đề hiển thị trong nội dung body, không phải phần đầu văn bản."},{text:"\u003Cbody>",label:"B",correct:false,explanation:"Nhầm với phần nội dung hiển thị của trang, không chứa siêu dữ liệu hay CSS."},{text:"\u003Chead>",label:"C",correct:true,explanation:""},{text:"\u003Ctitle>",label:"D",correct:false,explanation:"Thẻ title chỉ chứa tiêu đề trang, không bao gồm siêu dữ liệu và CSS như đề yêu cầu."}],section:null,statements:null,explanation:"Phần đầu trang chứa tiêu đề, siêu dữ liệu và liên kết CSS được đặt trong thẻ head, còn nội dung hiển thị nằm trong body.",correctAnswer:"C"},{id:4,text:"Trong các phần mềm sau đây, phần mềm nào được sử dụng phổ biến để soạn thảo văn bản HTML trên máy tính?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Microsoft Word.",label:"A",correct:false,explanation:"Nhầm Word là trình soạn thảo mã HTML, trong khi Word lưu file có định dạng riêng (.docx), không phải mã nguồn văn bản thuần."},{text:"Sublime Text.",label:"B",correct:true,explanation:""},{text:"Adobe Photoshop.",label:"C",correct:false,explanation:"Nhầm phần mềm xử lý ảnh với công cụ soạn thảo mã; Photoshop dùng để chỉnh sửa hình ảnh."},{text:"Google Chrome.",label:"D",correct:false,explanation:"Nhầm trình duyệt với trình soạn thảo; Chrome dùng để hiển thị trang web, không dùng để viết mã HTML."}],section:null,statements:null,explanation:"HTML là văn bản thuần, nên cần một trình soạn thảo mã nguồn văn bản thuần như Sublime Text, không cần phần mềm xử lý văn bản có định dạng hay xử lý ảnh.",correctAnswer:"B"},{id:5,text:"Thẻ HTML nào sau đây dùng để xác định tiêu đề sẽ được hiển thị trên thanh tiêu đề của một trang web trên trình duyệt?",type:"multiple-choice",images:null,groupId:null,options:[{text:"\u003Cmeta>",label:"A",correct:false,explanation:"Thẻ meta chỉ chứa thông tin mô tả trang (metadata) và không hiển thị tiêu đề trên thanh tiêu đề."},{text:"\u003Chead>",label:"B",correct:false,explanation:"Thẻ head chỉ là vùng chứa thông tin đầu trang, không trực tiếp quy định nội dung tiêu đề; tiêu đề nằm trong thẻ con title."},{text:"\u003Cheader>",label:"C",correct:false,explanation:"Thẻ header dùng để trình bày phần đầu của nội dung trong thân trang, không liên quan đến thanh tiêu đề trình duyệt."},{text:"\u003Ctitle>",label:"D",correct:true,explanation:""}],section:null,statements:null,explanation:"Nội dung hiển thị trên thanh tiêu đề của trình duyệt được khai báo trong thẻ title, nằm trong phần head của trang.",correctAnswer:"D"},{id:6,text:"Để hiển thị văn bản HTML trên trình duyệt web, cần làm công việc nào sau đây?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Dịch mã nguồn sang mã nhị phân.",label:"A",correct:false,explanation:"Cho rằng trình duyệt phải biên dịch mã HTML sang mã nhị phân; thực tế trình duyệt thông dịch trực tiếp mã văn bản."},{text:"Chạy trực tiếp file HTML trên trình duyệt.",label:"B",correct:true,explanation:""},{text:"Đưa mã nguồn vào máy chủ web.",label:"C",correct:false,explanation:"Cho rằng mọi trang phải được đưa lên máy chủ mới xem được; việc đưa lên máy chủ chỉ cần khi công bố trang trên Internet."},{text:"Sửa hết lỗi cú pháp trong văn bản HTML.",label:"D",correct:false,explanation:"Cho rằng lỗi cú pháp phải sửa hết mới hiển thị được; trình duyệt vẫn hiển thị trang dù còn lỗi nhỏ."}],section:null,statements:null,explanation:"Trình duyệt đọc trực tiếp file HTML (mã nguồn văn bản) và tự thông dịch, hiển thị thành trang web, nên chỉ cần mở file bằng trình duyệt.",correctAnswer:"B"},{id:7,text:"Cho văn bản HTML sau đây:\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Tiêu đề văn bản\u003C/title>\n\u003C/head>\n\u003Cbody>\n\u003Ch1>Đây là tiêu đề lớn nhất.\u003C/h2>\n\u003C/body>\n\u003C/html>\nPhương án nào sau đây nêu đúng lỗi có trong văn bản trên?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Thẻ \u003Ctitle> đặt trong thẻ \u003Chead> không đúng.",label:"A",correct:false,explanation:"Thẻ \u003Ctitle> nằm trong \u003Chead> là đúng vị trí quy định, nên đây không phải lỗi."},{text:"Thiếu kí tự / trong thẻ đóng của tiêu đề \u003Ch1>.",label:"B",correct:false,explanation:"Thẻ đóng \u003C/h2> có đầy đủ dấu /; lỗi nằm ở tên thẻ đóng chứ không phải thiếu kí tự /."},{text:"Thẻ \u003Cbody> khai báo thừa.",label:"C",correct:false,explanation:"Thẻ \u003Cbody> là thẻ bắt buộc của cấu trúc trang, không phải khai báo thừa."},{text:"Thẻ mở \u003Ch1> và thẻ đóng \u003C/h2> không tương ứng.",label:"D",correct:true,explanation:""}],section:null,statements:null,explanation:"Mỗi thẻ mở phải có thẻ đóng cùng tên; ở đây \u003Ch1> được đóng bằng \u003C/h2>, nên hai thẻ không khớp nhau.",correctAnswer:"D"},{id:8,text:"Thuộc tính nào sau đây xác định URL mà siêu liên kết (tạo bởi thẻ \u003Ca>) sẽ chuyển đến khi được nhấn chuột?",type:"multiple-choice",images:null,groupId:null,options:[{text:"url",label:"A",correct:false,explanation:"Nhầm tên với thuộc tính; 'url' không phải thuộc tính chuẩn của thẻ \u003Ca>."},{text:"href",label:"B",correct:true,explanation:""},{text:"link",label:"C",correct:false,explanation:"'link' không phải thuộc tính của thẻ \u003Ca>, dễ nhầm với tên thẻ \u003Clink> trong head."},{text:"src",label:"D",correct:false,explanation:"src dùng để chỉ nguồn tệp (ảnh, script), không dùng để xác định đích của siêu liên kết."}],section:null,statements:null,explanation:"Trong thẻ \u003Ca>, thuộc tính href chứa địa chỉ URL đích mà liên kết sẽ mở khi được nhấn.",correctAnswer:"B"},{id:9,text:"Thuộc tính HTML nào sau đây chỉ định văn bản thay thế cho hình ảnh, nếu hình ảnh không thể hiển thị?",type:"multiple-choice",images:null,groupId:null,options:[{text:"title",label:"A",correct:false,explanation:"title chỉ hiện chú thích khi di chuột qua ảnh, không thay thế ảnh khi ảnh không hiển thị."},{text:"src",label:"B",correct:false,explanation:"src chỉ đường dẫn tới tệp ảnh, không chứa văn bản thay thế."},{text:"alt",label:"C",correct:true,explanation:""},{text:"longdesc",label:"D",correct:false,explanation:"longdesc trỏ tới mô tả dài hơn ở một trang khác, không phải văn bản thay thế ngắn cho ảnh."}],section:null,statements:null,explanation:"Thuộc tính alt của thẻ \u003Cimg> lưu nội dung chữ thay thế hiển thị khi ảnh không tải được.",correctAnswer:"C"},{id:10,text:"Tại một trang web, để tạo một liên kết đến một trang web khác, URL của trang đó sẽ được đặt ở vị trí nào sau đây?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Giữa các thẻ \u003Ca> và \u003C/a>.",label:"A",correct:false,explanation:"Nhầm vai trò: giữa \u003Ca> và \u003C/a> đặt văn bản hoặc hình ảnh hiển thị, không đặt URL."},{text:"Giữa các thẻ \u003Clink> và \u003C/link>.",label:"B",correct:false,explanation:"Thẻ \u003Clink> dùng để liên kết tài nguyên như tệp CSS trong phần head, không tạo liên kết đến trang khác cho người dùng nhấn vào."},{text:"Trong thuộc tính href của thẻ \u003Ca>.",label:"C",correct:true,explanation:""},{text:"Trong thuộc tính src của thẻ \u003Ca>.",label:"D",correct:false,explanation:"Thuộc tính src dùng để nạp tài nguyên (ví dụ ảnh, script), không dùng để tạo liên kết trang."}],section:null,statements:null,explanation:"Địa chỉ đích của liên kết được khai báo trong thuộc tính href của thẻ \u003Ca>, còn nội dung giữa \u003Ca> và \u003C/a> là văn bản hiển thị để người dùng nhấn vào.",correctAnswer:"C"},{id:11,text:"Thẻ \u003Ciframe> trong HTML được sử dụng để làm công việc nào dưới đây?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Hiển thị hình ảnh.",label:"A",correct:false,explanation:"Hiển thị hình ảnh là việc của thẻ \u003Cimg>, không phải \u003Ciframe>."},{text:"Nhúng nội dung từ trang web khác vào trang hiện tại.",label:"B",correct:true,explanation:""},{text:"Tạo biểu mẫu nhập liệu.",label:"C",correct:false,explanation:"Biểu mẫu nhập liệu được tạo bằng thẻ \u003Cform> cùng các thẻ \u003Cinput>, không phải \u003Ciframe>."},{text:"Định dạng văn bản.",label:"D",correct:false,explanation:"Định dạng văn bản thuộc về các thẻ như \u003Cb>, \u003Ci> hoặc CSS, không phải \u003Ciframe>."}],section:null,statements:null,explanation:"Thẻ \u003Ciframe> tạo một khung nhúng trong trang, nơi hiển thị một trang web hoặc nội dung khác.",correctAnswer:"B"},{id:12,text:"Thuộc tính của một phần tử HTML được sử dụng để thực hiện công việc nào sau đây?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Xác định kiểu font của văn bản.",label:"A",correct:false,explanation:"Kiểu font thường được đặt qua CSS hoặc thuộc tính riêng, nhưng đây không phải chức năng chung của mọi thuộc tính."},{text:"Định dạng và kiểm soát cách hiển thị của phần tử.",label:"B",correct:true,explanation:""},{text:"Chứa nội dung của phần tử.",label:"C",correct:false,explanation:"Nội dung của phần tử nằm giữa thẻ mở và thẻ đóng, không do thuộc tính đảm nhiệm."},{text:"Chèn CSS để tạo hiệu ứng cho phần tử.",label:"D",correct:false,explanation:"CSS được chèn qua thuộc tính style hoặc thẻ \u003Cstyle>/\u003Clink>, nhưng đó là cách dùng cụ thể chứ không phải chức năng chung của thuộc tính."}],section:null,statements:null,explanation:"Thuộc tính bổ sung thông tin và điều chỉnh cách một phần tử được hiển thị hoặc hoạt động, còn nội dung và kiểu trình bày được quyết định bởi các thành phần khác.",correctAnswer:"B"},{id:13,text:"Điều gì sau đây là yêu cầu cần thiết để sử dụng phần mềm soạn thảo HTML trực tuyến?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Tải và cài đặt phần mềm trên máy tính cá nhân.",label:"A",correct:false,explanation:"Nhầm với phần mềm soạn thảo cài đặt ngoại tuyến; công cụ trực tuyến không cần cài đặt trên máy."},{text:"Kết nối Internet.",label:"B",correct:true,explanation:""},{text:"Trình duyệt web hiện đại.",label:"C",correct:false,explanation:"Trình duyệt là công cụ cần có để mở trang, nhưng đề hỏi yêu cầu đặc trưng của việc dùng công cụ trực tuyến, đó là kết nối mạng."},{text:"Kiến thức chuyên môn về lập trình HTML.",label:"D",correct:false,explanation:"Kiến thức lập trình giúp viết mã tốt hơn nhưng không phải điều kiện cần để sử dụng công cụ soạn thảo."}],section:null,statements:null,explanation:"Phần mềm soạn thảo HTML trực tuyến chạy trên trang web, nên máy phải có kết nối Internet để tải trang và sử dụng công cụ.",correctAnswer:"B"},{id:14,text:"Khi tạo bảng trong HTML, phần tử nào sau đây được sử dụng để xác định một hàng trong bảng?",type:"multiple-choice",images:null,groupId:null,options:[{text:"\u003Crow>",label:"A",correct:false,explanation:"Thẻ row không tồn tại trong HTML; nhầm với cách đặt tên trong các ngôn ngữ khác."},{text:"\u003Ctd>",label:"B",correct:false,explanation:"Nhầm thẻ ô dữ liệu với thẻ hàng; td chỉ xác định một ô trong hàng."},{text:"\u003Ctr>",label:"C",correct:true,explanation:""},{text:"\u003Cth>",label:"D",correct:false,explanation:"Nhầm thẻ tiêu đề ô với thẻ hàng; th chỉ xác định ô tiêu đề."}],section:null,statements:null,explanation:"Trong HTML, bảng được xây dựng theo hàng (tr) và ô (td hoặc th); thẻ tr xác định một hàng.",correctAnswer:"C"},{id:15,text:"Một tệp HTML cơ bản thường bắt đầu bằng khai báo \u003C!DOCTYPE html> và cặp thẻ nào là thành phần cấu trúc chính của tài liệu HTML?",type:"multiple-choice",images:null,groupId:null,options:[{text:"\u003Chead> và \u003Cbody>.",label:"A",correct:true,explanation:""},{text:"\u003Ctitle> và \u003Cmeta>.",label:"B",correct:false,explanation:"Title và meta chỉ là thẻ đặt bên trong head, không phải thành phần cấu trúc chính."},{text:"\u003Clink> và \u003Cscript>.",label:"C",correct:false,explanation:"Link và script là thẻ phụ trợ, thường đặt trong head, không phải cấu trúc chính."},{text:"\u003Chtml> và \u003Cbody>.",label:"D",correct:false,explanation:"Thẻ html là thẻ gốc bao quanh toàn bộ tài liệu, nên chọn nó làm thành phần chính là hiểu sai cấu trúc phân cấp."}],section:null,statements:null,explanation:"Thân tài liệu HTML gồm hai phần chính: phần đầu chứa thông tin khai báo (head) và phần thân chứa nội dung hiển thị (body).",correctAnswer:"A"},{id:16,text:"Trong cấu trúc của một tài liệu HTML, phần tử \u003Chead> có vai trò chính là gì?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Chứa tất cả nội dung hiển thị trên trang web.",label:"A",correct:false,explanation:"Nhầm phần \u003Chead> với \u003Cbody>, vùng chứa nội dung hiển thị chính trên trang."},{text:"Định nghĩa tiêu đề trang web hiển thị trên trình duyệt.",label:"B",correct:false,explanation:"Chỉ đúng một phần: tiêu đề hiển thị trên thanh tiêu đề trình duyệt nằm trong \u003Chead>, nhưng đây không phải vai trò chính của \u003Chead>."},{text:"Chứa các thông tin siêu dữ liệu (metadata) và các liên kết tới tệp bên ngoài (CSS, JS).",label:"C",correct:true,explanation:""},{text:"Định nghĩa phần thân của trang.",label:"D",correct:false,explanation:"Nhầm \u003Chead> với \u003Cbody>, phần thân chứa nội dung của trang."}],section:null,statements:null,explanation:"Phần \u003Chead> không hiển thị trực tiếp trên trang mà chứa thông tin cấu hình như metadata, tiêu đề, và liên kết tới CSS, JavaScript.",correctAnswer:"C"},{id:17,text:"Điều nào sau đây mô tả đúng nhất về cách một phần mềm soạn thảo HTML hoạt động?",type:"multiple-choice",images:null,groupId:null,options:[{text:"Nó tự động chuyển đổi văn bản thành hình ảnh để hiển thị trên trình duyệt.",label:"A",correct:false,explanation:"Nhầm phần mềm soạn thảo mã với trình duyệt, thứ mới là công cụ hiển thị trang web."},{text:"Nó yêu cầu kết nối Internet liên tục để hoạt động.",label:"B",correct:false,explanation:"Cho rằng phần mềm soạn thảo cần Internet, trong khi nó hoạt động cục bộ trên máy tính."},{text:"Nó giúp người dùng viết mã HTML và thường có các tính năng hỗ trợ như tô màu cú pháp, tự động hoàn thành, kiểm tra lỗi cú pháp.",label:"C",correct:true,explanation:""},{text:"Nó chỉ có thể chỉnh sửa các tệp HTML được tạo ra bởi chính phần mềm đó.",label:"D",correct:false,explanation:"Hiểu sai: phần mềm soạn thảo có thể mở và sửa mọi tệp văn bản HTML, không chỉ tệp do chính nó tạo ra."}],section:null,statements:null,explanation:"Phần mềm soạn thảo HTML là công cụ hỗ trợ viết mã, với các tính năng như tô màu cú pháp, tự động hoàn thành và kiểm tra lỗi.",correctAnswer:"C"},{id:18,text:"Khi xây dựng một trang web, việc hiểu rõ các thành phần cơ bản của HTML là rất quan trọng.",type:"true-false",images:null,groupId:null,options:null,section:null,statements:[{text:"thẻ \u003Cbody> của một tài liệu HTML chứa tất cả các nội dung chính sẽ hiển thị trên trình duyệt web.",label:"A",correct:false,explanation:""},{text:"khai báo \u003C!DOCTYPE html> là một thẻ HTML được dùng để định nghĩa tiêu đề của trang web.",label:"B",correct:false,explanation:""},{text:"phần tử \u003Chead> thường chứa các thông tin như tiêu đề trang, mô tả và liên kết đến các tệp CSS để định dạng.",label:"C",correct:false,explanation:""},{text:"HTML là viết tắt của cụm từ Hyperlinks Text Markup Language.",label:"D",correct:false,explanation:""}],correctAnswer:null},{id:19,text:"Các thẻ và thuộc tính trong HTML có vai trò quan trọng trong việc định dạng và cấu trúc nội dung trên trang web.",type:"true-false",images:null,groupId:null,options:null,section:null,statements:[{text:"thuộc tính href trong thẻ \u003Ca> được sử dụng để chỉ định địa chỉ của liên kết mà người dùng sẽ chuyển đến khi nhấp vào.",label:"A",correct:true,explanation:""},{text:"thẻ \u003Cdiv> được dùng để tạo một đoạn văn bản mới trên trang web, tương tự như thẻ \u003Cp>.",label:"B",correct:false,explanation:""},{text:"để làm nổi bật hoặc nhấn mạnh một phần văn bản, có thể sử dụng các thẻ như \u003Cstrong> hoặc \u003Cem>.",label:"C",correct:true,explanation:""},{text:"giá trị của thuộc tính id của một phần tử HTML phải là duy nhất trong toàn bộ tài liệu HTML.",label:"D",correct:true,explanation:""}],explanation:"Thuộc tính href xác định địa chỉ đích của liên kết, còn id phải duy nhất trong tài liệu. Thẻ div là khối bao chứa, không phải thẻ tạo đoạn văn như thẻ p.",correctAnswer:null},{id:20,text:"Việc lựa chọn công cụ và hiểu biết về quy trình xây dựng trang web sẽ giúp bạn tạo ra một sản phẩm hiệu quả.",type:"true-false",images:null,groupId:null,options:null,section:null,statements:[{text:"để viết mã HTML, An có thể sử dụng các phần mềm soạn thảo văn bản như Notepad++.",label:"A",correct:true,explanation:""},{text:"phần “Thân trang” (\u003Cbody>) của một trang web thường chứa các nội dung chính hiển thị cho người dùng, bao gồm tiêu đề, đoạn văn bản và hình ảnh.",label:"B",correct:true,explanation:""},{text:"Google Sites là một công cụ giúp người dùng xây dựng trang web trực tuyến mà không đòi hỏi kiến thức sâu về lập trình HTML.",label:"C",correct:true,explanation:""},{text:"để kiểm tra kết quả hiển thị của mã HTML sau khi soạn thảo, người dùng phải sử dụng một trình duyệt web.",label:"D",correct:true,explanation:""}],explanation:"Notepad++ là trình soạn thảo văn bản dùng để viết mã HTML, Google Sites cho phép tạo website không cần lập trình, phần thân trang chứa nội dung hiển thị, và muốn xem kết quả mã HTML phải mở bằng trình duyệt web.",correctAnswer:null}],difficulty:"easy",sourceKind:"exam",hasAnswerKey:true,totalQuestions:20},summary:{id:"de-kiem-tra-tin-hoc-12-bai-7-xay-dung-trang-web-html-truong-I5v2Lz",title:"Đề kiểm tra Tin học 12 – Bài 7 Xây dựng trang web HTML – Trường THPT Nguyễn Hữu Thọ",subject:"Tin học",year:void 0,totalQuestions:20,totalUnits:void 0,examReady:true,mediaIncomplete:void 0,duration:void 0,school:"THPT Nguyễn Hữu Thọ",province:void 0,examType:"high-school",bracket:void 0,hasAnswerKey:true,authorId:"I8CYx6JeAS7MsyPWDTAXJjLXSbOqVCkg",crawledAt:"2026-11-18T16:36:19.814Z",takers:0},examId:"de-kiem-tra-tin-hoc-12-bai-7-xay-dung-trang-web-html-truong-I5v2Lz",related:[{id:"de-on-tap-tin-hoc-10-bai-1-den-bai-26-he-dieu-hanh-phan-mem-KJGURq",title:"Đề ôn tập Tin học 10 – Bài 1 đến Bài 26 (Hệ điều hành, phần mềm nguồn mở, phần cứng, GIMP)",year:void 0,totalQuestions:1,province:void 0,school:void 0},{id:"de-cuong-tin-hoc-truong-dinh-minh-quan-EDYRx9",title:"Đề cương Tin học Trương Đình Minh Quân",year:void 0,totalQuestions:100,province:void 0,school:void 0},{id:"bai-kiem-tra-bai-2-vai-tro-cua-thiet-bi-thong-minh-va-tin-ho-2fDY-A",title:"Bài kiểm tra Bài 2: Vai trò của thiết bị thông minh và tin học đối với xã hội",year:void 0,totalQuestions:30,province:void 0,school:void 0},{id:"de-thi-giua-ki-tin-hoc-lop-10-bai-8-mang-may-tinh-va-interne-MfmXSv",title:"Đề thi giữa kì Tin học lớp 10 – Bài 8: Mạng máy tính và Internet",year:2025,totalQuestions:40,province:"Cần Thơ",school:"Học viện Tài chính"},{id:"de-trac-nghiem-tin-hoc-12-bai-1-den-bai-7-tri-tue-nhan-tao-m-nA28f8",title:"Đề trắc nghiệm Tin học 12 – Bài 1 đến Bài 7 (Trí tuệ nhân tạo, mạng máy tính, giao thức, giao tiếp không gian mạng, HTML)",year:2026,totalQuestions:100,province:"An Giang",school:"THPT Thoại Ngọc Hầu"},{id:"de-cuong-on-tap-giua-ki-i-mon-tin-hoc-lop-10-25-cau-trac-ngh--SZ3xj",title:"Đề cương ôn tập giữa kì I môn Tin học lớp 10 – 25 câu trắc nghiệm",year:2026,totalQuestions:25,province:"Hà Nội",school:"THPT Minh Phú"}],examDbId:"Yuq7hadnQzUEFnUrE8rZc",isOwner:false,authorId:"I8CYx6JeAS7MsyPWDTAXJjLXSbOqVCkg",isAdmin:false,removed:false,wrongSet:[],lastAttempt:null,attempts:null,isPaid:false,multiSubject:null,sameSubjectToday:0,takerCount:0},uses:{params:["examId"]}}], form: null, error: null }); }); } </script> </div> </body> </html>