I have found this code for creating group box :
<fieldset>
<legend>Title</legend>
</fieldset>
It is said that it creates the following group box at runtime:
When I run in my Visual Studio Code it appears like this:
The border is hardly visible and the text appears in a wrong place. Am I doing something wrong?
2
Answers
Try adding CSS to your element:
Example:
The issue is that all browsers have different default styling. Yours is unusual.
I copied some of my User Agent Stylesheets from MacOS+Chrome109