HTML a name attribute
Browser Support
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 | 锚的名称。 |