tagName is the tag name of the element returned by the html element attribute.
In HTML, the return value of the tagName attribute is always uppercase.
localName is an XML attribute that returns the local name (element name) of the selected element.
If the selected node is not an element or attribute, this property returns NULL.