JSFiddle - React, Tailwind, and code Playground
by hescano
HTML
<ul>
<li>paragraph</li>
<li>unordered list</li>
<li>list item</li>
</ul>
JavaScript
window.onload = function()
{
var listItems = document.getElementsByTagName("li");
for (var i = 0; i < listItems.length; i++)
{
alert(listItems[i].nodeName);
}
}