𝗦𝗔𝗩𝗔𝗚𝗘 ✞ 𝗧𝗘𝗖𝗛 ²²² 𝗖𝗟𝗔𝗦𝗦
STEP 16 — ADD A CHECKBOX
<input type="checkbox">
WHAT IT MEANS:
<input> = Creates an input field.
type="checkbox" = Changes the input into a checkbox.
A checkbox lets the user choose whether something is selected or not.
Example:
<input type="checkbox">
I agree
The browser will show:
☐ I agree
REMEMBER:
type="text" = Text box.
type="checkbox" = Checkbox.
The same <input> tag can create different types of controls.
1 · 296 ·