First of all, you must know what kind of field you are looking forward to create for your web page and where you want it to be displayed.
The tag which is used to open the field set is “
”. On the other hand, “
” is used to close the field set which you have created.
After opening the tag of field set i.e. “
”, you have to open a new tag which is known as legend i.e. “
” in which you will define the caption for all the elements of your field set. It is extremely important for you to use the legend tag because the caption enables the software programmer to assess the purpose of the field set. If you have not created a legend within the field set, a new developer will not be able to find it. Furthermore, you may also face issues in finding a particular field set if you have not created the legend tag.
Then, you have to define all your fields which you want to appear on the web page. For instance, you can create the fields like name, email and date of birth.
After defining all the fields, you have to close all the tags which you have opened in the start of the whole code.
Your final code will look like:
Date of birth: