The attr object returns an attribute of an element object as an
attribute node. The attr object has the same properties and
methods as nodes in general. The properties made for the
attribute object only, are listed below.
Attr Properties
Name Description
name Returns, or sets the name of the attribute
specified Returns a boolean value indicating if the node's value
is set in the document or not