Home >Web Front-end >HTML Tutorial >HTML tags that have not been touched before_html/css_WEB-ITnose
HTML tags used for forms
HTML 2b5469ab79cf842344327415c3b3bb95 tags
Definition and usage fieldset element You can group related elements within a form.
The 2b5469ab79cf842344327415c3b3bb95 tag packages part of the form content to generate a set of related form fields. The
e911751791aa3ba95dc724e2fb905976 tag defines the title for the fieldset element.
fieldset domain legend domain title
1 <form>2 <fieldset>3 <legend>用户表单</legend>4 <input type="text" value="">5 <input type="text" value="">6 </fieldset>7 </form>
HTML 5b7a15bed8615d1b843806256bebea72 tag
optgroup Defines an option group
Theoptgroup element is used to combine options. When you work with a long list of options, grouping related options can make things easier.
1 <select> 2 <optgroup label="Swedish Cars"> 3 <option value="volvo">Volvo</option> 4 <option value="saab">Saab</option> 5 </optgroup> 6 <optgroup label="German Cars"> 7 <option value="mercedes">Mercedes</option> 8 <option value="audi">Audi</option> 9 </optgroup>10 </select>