'tagName' Syntax and Note : tagName « Javascript Properties « JavaScript Reference

'tagName' Syntax and Note

Note:

Read-only property. 
Returns the tag name of the element.
    
Syntax:
    
document.getElementById("elementID").tagName
document.all.elementID.tagName // IE only

    

      
      








Related examples in the same category

1.'tagName' Example
2.'tagName' is applied to