Fieldset and Legend Elements
The fieldset element is often used to group form elements . It creates a border around the nested el...
Form validation In HTML5
So, we have various elements at our disposal that we can use on the form. We can enter different val...
Textarea
The element allows you to create a simple single-line text field. However, the text input capabiliti...
Select list in HTML5
The select element creates a list. Depending on the settings, this can be a drop-down list for selec...
File upload
The element input with the type = “file” attribute is responsible for selecting files on...
Elements for entering date and time
There are several types of input elements for working with dates and times in HTML5: datetime-local ...
Elements for entering color, url, email, phone
Color setting A special input element with the color type is responsible for setting the color in HT...
Checkboxes and radio buttons
Checkbox A checkbox represents an item that can be in two states: checked and unchecked. A checkbox ...
Elements for entering numbers
Simple numeric field An element input with the type=”number” attribute is used to enter ...
Label and autofocus
Along with input fields, labels are often used, which are represented by the label element . Labels ...