get element by tag code example
Example 1: document get element by tag
var list = document.getElementsByTagName("UL")[0];
list.getElementsByTagName("LI")[0].innerHTML = "Milk";
Example 2: jquery get element by tag
$( "div" ).css( "border", "9px solid red" );
Example 3: get all a tags javascript
document.anchors