- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML5 Input type “number” in Firefox
The min attribute of the input type number isn’t supported by Firefox, but it works correctly in Google Chrome.
Example
Let us see an example −
<!DOCTYPE html> <html> <head> <title>HTML input number</title> </head> <body> <form action = "" method = "get"> Mention any number between 1 to 10 <input type = "number" name = "num" min = "1" max = "10"><br> <input type = "submit" value = "Submit"> </form> </body> </html>
Advertisements