← HTML 按元素划分的属性列表 HTML 全局属性 →

HTML 属性值列表

原创 2025-09-14 HTML 已有人查阅

HTML 参考手册

本索引手册提供按字母排序的HTML属性值完整参考,包含标准值(如autofocus)、布尔值、枚举值(<input type>的32种选项)及浏览器扩展值。支持快捷键跳转查询,附带各值的兼容性分级与使用场景说明,助力开发者快速定位有效属性配置。

HTML 属性值列表(按字母排序)

属性 描述
contenteditable "true", "false" 指定元素内容是否可编辑
draggable "true", "false", "auto" 指定元素是否可拖动
inputmode "none", "text", "decimal", "numeric", "tel", "search", "email", "url" 指定虚拟键盘类型
translate "yes", "no" 指定元素内容是否应翻译
autocomplete "on", "off" 指定输入是否应启用自动完成
formenctype "application/x-www-form-urlencoded", "multipart/form-data", "text/plain" 指定表单数据编码类型
formmethod "get", "post", "dialog" 指定表单提交方法
formtarget "_blank", "_self", "_parent", "_top", framename 指定表单响应显示位置
input type "button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week" 指定输入控件类型
method "get", "post", "dialog" 指定表单提交方法
preload "none", "metadata", "auto" 指定媒体预加载行为
target "_blank", "_self", "_parent", "_top", framename 指定链接打开位置
wrap "hard", "soft" 指定文本区域换行方式
shape "rect", "circle", "poly", "default" 指定图像映射区域形状
loading "eager", "lazy" 指定图像加载方式
decoding "sync", "async", "auto" 指定图像解码方式
kind "subtitles", "captions", "descriptions", "chapters", "metadata" 指定文本轨道类型
scope "row", "col", "rowgroup", "colgroup" 指定标题单元格范围
← HTML 按元素划分的属性列表 HTML 全局属性 →
分享笔记 (共有 篇笔记)
验证码:
微信公众号