屬性 值 描述
accept mime_type 規定通過文件上傳來提交的文件的類型。
align
left
right
top
middle
bottom
不贊成使用。規定圖像輸入的對齊方式。
alt text 定義圖像輸入的替代文本。
autocomplete
on
off
規定是否使用輸入字段的自動完成功能。
autofocus autofocus
規定輸入字段在頁面加載時是否獲得焦點。
(不適用于 type="hidden")
checked checked 規定此 input 元素首次加載時應當被選中。
disabled disabled 當 input 元素加載時禁用此元素。