Html legend标签说明

xiaoxiao2025-02-11  9

legend 元素为 fieldset 元素定义标题(caption)。

 

<html> <body> <fieldset> <legend>健康信息:</legend> <form> <label>身高:<input type="text" /></label> <label>体重:<input type="text" /></label> </form> </fieldset> <p>如果表单周围没有边框,说明您的浏览器太老了。</p> </body> </html>

 

转载请注明原文地址: https://www.6miu.com/read-5024512.html

最新回复(0)