jquery tag name

JavaScript
$('anything').prop("tagName")
Source

Also in JavaScript: