أنظمة وتقنيات الويب

الفصل ٣: Introduction to HTML5: Part 2

شريحة ١ من ١٦

New input Types & Self-Validation

HTML5 adds many new form input types (not yet supported by every browser). A key benefit: the new input types are self-validating on the client side.

  • This eliminates much complicated JavaScript validation, reduces invalid data submitted, and reduces Internet traffic between client and server.
  • When the user submits, the browser immediately checks self-validating elements.
  • The server should still validate all user input.