HTML
document.getElementById() html.ug5g.com My id = div1
document.getElementsByName() <div name="Name"></div> <p name="Name"></p> <span name="Name"></span> <h1 name="Name"></h1>
document.getElementsByClassName() <div class="CLASS"></div> <p class="CLASS"></p> <span class="CLASS"></span> <h1 class="CLASS"></h1>
document.getElementsByTagName() <span>11</span> <span>22</span> <span>33</span> <span>44</span>