Learn about the most common attributes you will use when creating forms.
- [Instructor] Attributes are used to add additional…information and browser instructions to an element in HTML.…In this video, we will look at some…of the most common attributes you will use…when creating forms, but many of the other…HTML attributes may be relevant for forms.…Some of these attributes in this video…are ones we've covered in previous videos.…The first attribute is type,…and this is used on the input element,…because there's more than one type of input.…For example, text, number, or date.…The type attribute is required on the input field.…
The next attribute is name.…And this can go on the input, select, or text area element.…It labels the data when it's sent to the server…or database, or however the data is processed,…and you can think of it…like the column name in the database.…Each name in a form should be unique.…This isn't shown to the user.…You use the label element to tell the user…what goes in each field in the form.…You need to include this…on every input, select, or text area.…The next attribute is for.…
- How users interact with forms
- Designing forms that are easy to use
- Following data privacy laws when collecting information
- Choosing which HTML input types to use
- Adding buttons
- Adding interactive validation
- Styling form fields with CSS
- Using positioning and flexbox to create responsive form layouts
Skill Level Beginner
1. Designing a Form Experience
2. Creating Forms with HTML
3. Making Forms Interactive
4. Styling Form Fields with CSS
5. Form Layout with CSS
- 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.Cancel
Take 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.