HTML元素和属性

1.表单控件元素

  • <input>
  • <textarea>
  • <select>
  • <option>
  • 其他元素

<input>属性:id,name,type,size(定义文本框宽),disabled(禁用),checked(默认勾选),maxlength(限制输入的字符数),readonly(设置文本控件只读)

 其中可以和<label>联合使用,比如

<input type="radio" name="secret" value="不要公开我的信息" id="info">
<label for="info">不要公开我的信息</label>

<select>属性:name,size(定义菜单行数),multiple(允许多选),selected

<option>属性:value:submit提交的内容

2.<form>属性:action:(data/user.jsp),method,enctype(表单数据进行编码的方式),name(表单名字)

Ride the wave as long as it will take you.
原文地址:https://www.cnblogs.com/jianpanaq/p/7262251.html