Note: this means if there’s an <a> element in a page that doesn’t have the `name` attribute, it won’t be included in the returned a collection of this property.
document anchors Property Syntax:
document anchors Property Parameters
The anchors property is read-only. So this means you can’t set an argument for the property.
document anchors Property Return Value
The return value of this property is a reference to a collection object that contains the entire <a> elements on a page that has a value set for their `name` attribute.
As you can see, here we have 4 <a> elements, but the last one does not have the `name` attribute associated with it. For that reason, it was not included in the items of the collection that were returned after calling the anchors property.