可将相关的表单控件置于<fieldset>元素中分成一组。这对长表单来说特别有用
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <div>TODO write content</div>> <fieldset> <legend>起始标签</legend> <label>标题:<br /> <input type="text" name="email" /></label><br /> <label>标题:<br /> <input type="text" name="mobile" /></label><br /> <label>标题:<br /> <niput type="text" name="telephone" /></label> </fieldset> </body> </html>