ควิซ HTML & CSS: Input Types & Validation

This HTML quiz covers input types like email, number and tel and the browser's built-in constraint validation. You will predict which values pass required, pattern, min and step, and why the server still has to check everything.

ปานกลาง 10 ข้อ ~6 นาที ผ่านที่ 80%

เลือกโหมด

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

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

ข้อ 1 จาก 10

The user types hello and clicks Send. What happens?

<form action="/join">
  <input type="email" name="e">
  <button>Send</button>
</form>
ดูเฉลย

B. The browser blocks the submission and shows a validation message A non-empty type="email" field must contain a valid email address, so the browser stops the submit and shows a message. Note that an empty field would pass, because the field is not required.

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

  • email, number, tel and what each one checks
  • required, pattern, min, max, step and maxlength
  • novalidate and client vs server validation
  • Placeholders vs labels
  • autocomplete tokens

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

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

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

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

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