Home >Web Front-end >HTML Tutorial >HTML tags that have not been touched before_html/css_WEB-ITnose

HTML tags that have not been touched before_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:42:511081browse

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

The

optgroup 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>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn