ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# HTML title 属性 [HTML 全局属性](/tags/html_ref_standardattributes.asp) ## 实例 在 HTML 文档中使用 title 属性: ``` <abbr title="People's Republic of China">PRC</abbr> was founded in 1949. <p title="Free Web tutorials">W3School.com.cn</p> ``` (可以在本页底部找到更多实例) ## 定义和用法 title 属性规定关于元素的额外信息。 这些信息通常会在鼠标移到元素上时显示一段工具提示文本(tooltip text)。 提示:title 属性常与 form 以及 a 元素一同使用,以提供关于输入格式和链接目标的信息。同时它也是 abbr 和 acronym 元素的必需属性。 ## 支持 W3C: "W3C" 列指示 W3C 的 HTML/XHTML 推荐标准中是否定义了该属性。 | IE | Firefox | Opera | Safari | W3C | | --- | --- | --- | --- | --- | | YES | YES | YES | YES | YES | ## 语法 ``` <element title="_value_"> ``` ### 属性值 | 值 | 描述 | | --- | --- | | _text_ | 规定元素的工具提示文本(tooltip text)。 | [HTML 全局属性](/tags/html_ref_standardattributes.asp)