UK [ˈledʒənd] US [ˈlɛdʒənd]

n. Legend; legendary figure; legend; inscription

Plural: legends

html legend tag syntax

Function: Define the title (caption) for the fieldset element.

Note: All browsers support the <legend> tag.

Note: In HTML 4.01, the align attribute is deprecated. In XHTML 1.0 Strict DTD, the align attribute is not supported.

html legend tag example

<!DOCTYPE HTML>
<html>

<body>

<form>
  <fieldset>
    <legend>健康信息</legend>
    身高:<input type="text" />
    体重:<input type="text" />
  </fieldset>
</form>

<p>如果表单周围没有边框,说明您的浏览器太老了。</p>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance