From 2b1aba02f7d8eda1cf0a870851fcef78a4ae377e Mon Sep 17 00:00:00 2001 From: Sarah Waldie Date: Tue, 11 Dec 2018 10:58:39 -0500 Subject: [PATCH] Add Paragraph Covering Min and Max (#27579) Covers setting min and max attributes on an input with the type "number." --- guide/english/html/html-forms/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guide/english/html/html-forms/index.md b/guide/english/html/html-forms/index.md index 142e1a59c7..c1a50b9c89 100644 --- a/guide/english/html/html-forms/index.md +++ b/guide/english/html/html-forms/index.md @@ -67,6 +67,15 @@ Other elements that form can contain: - ```fieldset```- It groups related elements in a form. - ```legend```- It defines a caption for a
element. +SETTING MINIMUM AND MAXIMUM VALUES ON INPUTS OF TYPE "NUMBER" + +If you would like to require your user to enter a number value within a certain range, you can use the "min" and "max" attributes to the input element. + +For example: + + +You can use only min, only max or both to set your range. If the user enters a value outside of the range, the browser will automatically generate a notifcation alerting them to the requirement. + MORE INFORMATION ON HTML FORMS. HTML Forms are required when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc.