Getting of element by tag name in JavaScript
Given a list:
<ul>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
</ul>
Get all the li tags by tag name and
make their text red.
Given a list:
<ul>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text</li>
</ul>
Get all the li tags by tag name and
make their text red.