This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.



Smartphone icons created by Freepik - Flaticon

JS HTML DOM

Finding HTML Elements by Tag Name.

This example demonstrates the getElementsByTagName method.

const element = document.getElementsByTagName("p");

document.getElementById("demo").innerHTML = 'The text in first paragraph (index 1) is: ' + element[1].innerHTML;