This is a free template with 2 examples of using form fieldset legends in Bootstrap 5. Download it, customize it, and use it as you like!
A form with 3 fieldsets and 3 legends: User Credentials, User Description, and User Preferences.
A form with 3 fieldsets and 3 legends: Current Occupation, Your Address, and Job Preferences.