SyntaxFix
Write A Post
Hire A Developer
Questions
It is worth noting that @Marius's second answer could be used as pure Javascript solution.
document.getElementById('elementId').tagName