From the course: Building HTML5 Forms with Dreamweaver
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting a required input - Dreamweaver Tutorial
From the course: Building HTML5 Forms with Dreamweaver
Setting a required input
- [Narrator] Let's dig deeper into the power of HTML input types. So far, we've seen how input types make it easier, more inviting, and yes, even more fun for users to provide that valuable data that is a lifeblood of any website. I'm talking about orders for products, subscriptions for services, feedback, and more. In this chapter, we'll explore how you can make inputs required. That is to say, a user has to supply that information or the form won't be submitted. I'll also show you how to constrain the value of an input, for example, if you're taking orders for lamps, you don't want an order for 1.3 lamps. I'm also going to show you how to make input easier with select menus and data lists. And I'm going to explain what autofocus means, and how that can make filling out forms easier for your user. The benefits of defining required input for a website are pretty obvious, right? It's hard to fill an order without a credit card. It's hard to deliver a service or a product or information…
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.