elem_name function

Get the tag name of an element