Controls Overview
In this lesson, we'll see the different types of controls available to us in the HTML5 form. Let's begin!
You’ve already seen a few controls such as the textbox
and the submit button
in the small markup snippets from previous lessons, but there are many more!
You will learn to use them through exercises, but first, you’ll be given a short overview of them.
As you already know, <form>
is the markup element that encapsulates all controls.
The <input>
element
Most controls can be rendered with the <input>
element that has a type attribute. This attribute specifies the type of control; it determines how the control is rendered in the browser, and how it behaves.
If you do not specify the type, the control will be a textbox
. This is the same as setting type to text
...