ควิซ HTML & CSS: Document Structure & DOCTYPE

This HTML quiz checks the skeleton every page shares. You will look at short snippets and decide what belongs in the head, what the DOCTYPE does and how the browser handles markup that is incomplete or badly nested.

ง่าย 10 ข้อ ~5 นาที ผ่านที่ 80%

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

What does <!DOCTYPE html> at the top of a page do?

<!DOCTYPE html>
<html lang="en">
  ...
</html>
ดูเฉลย

B. Makes the browser render the page in standards mode instead of quirks mode The DOCTYPE only switches the browser into standards (no-quirks) mode. Without it, browsers emulate old, buggy layout rules; it does not load anything and has nothing to do with the server.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • What <!DOCTYPE html> does
  • What goes in <head> and what goes in <body>
  • Declaring the page language and character encoding
  • Void elements, comments and nesting
  • How the browser fills in missing tags

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง