

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Is HTML 5 validation useful?
Yes, HTML5 validation is useful and useful to validate forms as well. Now you do not need to have JavaScript for client-side validations like empty text box would never be submitted because HTML5 introduced a new attribute called required.
Let us see an example −
<!DOCTYPE HTML> <html> <body> <form action = "/cgi-bin/html5.cgi" method = "get"> Enter email : <input type = "text" name = "newinput" required/> <p>Try to submit using Submit button</p> <input type = "submit" value = "submit" /> </form> </body> </html>
- Related Questions & Answers
- Difference between HTML and HTML 5
- Client side validation with HTML and without JavaScript
- What are HTML 5 Standard Events?
- HTML 5 video or audio playlist
- HTML 5 versus XHTML 1.0 Transitional
- Is it possible to use JSF+Facelets with HTML 4/5?
- How cow dung is useful for agriculture?
- Why is wavelet transformation useful for clustering?
- What is AAA rating and how is it useful?
- When is the comma operator useful in JavaScript?
- How the neural network is useful in classification?
- What is an Account Number and how is it useful?
- Android 4.0.1 breaks WebView HTML 5 local storage?
- Override HTML5 validation
- Bootstrap Validation States
Advertisements