There are three Nodetype
1 element nodes are typically acquired element node (the most common)
var d = document.getElementById("john");
alert(d.nodeType) 1
2 attribute nodes (to use getAttributeNode acquired)
var d = document.getElementById("john").getAttributeNode("name");
alert(d.nodeType) 2
3. Text node node acquires the plain text is the text node