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
Release: 2016-06-24 11:42:51
Original
1084 people have browsed it

HTML tags used for forms

HTML

tags

Definition and usage fieldset element You can group related elements within a form.

The

tag packages part of the form content to generate a set of related form fields. The

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>
Copy after login

HTML 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>
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template