The
##
The following is the general usage of the
1. Create a form group:
Use the
For example:
##<form>
<fieldset>
<legend>个人信息</legend>
<label for="name">姓名:</label>
<input type="text" id="name" name="name"><br>
<label for="email">邮箱:</label>
<input type="text" id="email" name="email"><br>
</fieldset>
</form>
2. Use the
For example:
##
<form> <fieldset> <legend>个人信息</legend> <label for="name">姓名:</label> <input type="text" id="name" name="name"><br> <label for="email">邮箱:</label> <input type="text" id="email" name="email"><br> </fieldset> </form>
Summary:
## tags are used to associate relevant Form elements are grouped to better organize and present form content. It can be used with the tag to define a title for the group. by using , can make the form clearer and easier to understand.
The above is the detailed content of fieldset tag usage. For more information, please follow other related articles on the PHP Chinese website!