From the course: Building HTML5 Forms with Dreamweaver
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
The number input - Dreamweaver Tutorial
From the course: Building HTML5 Forms with Dreamweaver
The number input
- [Instructor] I think the most valuable single thing about the number input is that it pops up in numeric keypad and smart phones. That's convenient, it's handy, it facilitates input. But there's some other advantages to the number input. One of which being it displays a helpful up and down arrow set to make it easy for laptop and desktop users to define a value with their mouse. The syntax is pretty much the same as it has been for other inputs. Label for and then number in quotes, close the open label tag. Then the actual label like enter a number, and we close the label tag. Then we have the input type equals number id equals number and name equals number. If we want to have a default value, there's a lot of reasons why you might want to do that. Let's say you're encouraging someone to order 100 of something. That can come up as the default. We do that by adding a parameter for value equals in this case 100. And let's see how that looks in a browser. There's the value of 100. If I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.