Latest web development tutorials

HTML a name attribute

HTML a Tag Reference HTML <a> tag

Examples

name attribute is used to specify an anchor (anchor) name:

<a name="C4">第四章</a>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support attribute name


Definition and Usage

HTML5 no longer supports the name attribute <a> tag. You can use the id attribute replace name attribute.

name attribute is used to specify an anchor (anchor) name.

You can create a bookmark name attribute (large) within the document.

You must provide a name or href attribute within <a> tag.

Tip: In XHTML, name attribute <a> tag is obsolete and will be removed later. You can use the id attribute group.


grammar

<a name="value">

Property Value

描述
anchor_name 锚的名称。


HTML a Tag Reference HTML <a> tag