Set constraints on values—including dates—that users can enter into a form, using just HTML5. David Karlins demonstrates how.
- [Instructor] Sometimes it's valuable,…even necessary to constrain input values…to a set range.…For example, if you're filling orders…for the new iPhone, and you're willing to fill an order…between one and up 100,…then you're going to want to constrain the user's input…to something within that range.…You're also going to want to make sure…that nobody accidentally enters something…other than an integer.…So, for example, they can't order 3.5 iPhones.…
So, let's set that up.…The syntax here is getting complex enough…that this is a good time to invoke and rely on…the expanded section of the properties panel…for different form elements.…With a number selected in my code,…I can define high, low, and step values.…First, I'll start with the basic code.…Next, I'll invoke the Properties Inspector.…I'll select the input type in the code,…and the Properties Inspector responds by providing…context helpful options.…
Let's choose a suggested value, and…we want people to order the maximum number,…so we'll go with 100.…The minimum they can order is one.…
Author
Released
11/8/2017- Modern form inputs
- Dreamweaver form design features
- Styling forms with CSS
- Form input types
- Setting required inputs and constraints
- Styling inputs with CSS
- Integrating Bootstrap tools
Skill Level Advanced
Duration
Views
Related Courses
-
Considering a CMS for Web Design
with Brian Wood54m 59s Beginner -
Design Aesthetics for the Web
with Sue Jenkins2h 45m Beginner -
Dreamweaver CC Essential Training
with David Powers8h 11m Beginner
-
Introduction
-
Welcome48s
-
Using the exercise files1m 52s
-
-
1. Examples of Modern Inputs
-
2. Building Forms with Dreamweaver
-
Styling forms with CSS2m 9s
-
3. Form Input Types
-
The color input2m 33s
-
The date input2m 27s
-
The email input1m 41s
-
The number input1m 42s
-
The range input3m 19s
-
The search input1m 56s
-
The telephone input1m 6s
-
The time input2m 3s
-
The URL input3m 56s
-
4. Using HTML5 Inputs for Validation
-
Setting a required input3m 13s
-
Setting a constrained input2m 56s
-
-
5. Inviting and Accessible Inputs
-
Effective use of labels1m 43s
-
6. Styling Input
-
Styling inputs with CSS1m 18s
-
CSS for forms1m 33s
-
CSS for styling inputs1m 14s
-
CSS for styling text areas1m 34s
-
Styling with fieldsets2m 39s
-
-
7. Bootstrap Form Tools
-
Creating inline forms3m 9s
-
Adding labels and badges1m 12s
-
Adding sets of radio buttons3m 10s
-
Conclusion
-
Next steps2m 11s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Setting a constrained input