How to resize the Field set under forms

Hi team,
While practicing the HTML coding i observe that the form which i was creating while using “field set” there is a large area of border is remain vacant. So, please let me know how to resize the field set so that i border only relevant area.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.