[JavaScript] Selecting HTML Elements.
1. getElementsByTagName("TagName")
when you use the mentioned one, you will get all the elements from the HTML as below.
HTML
<ul id="list">
<li class = "item">
<a href = "http://www.google.com">Google</a>
</li>
...
suzie.hashnode.dev3 min read