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

Hello World!

Hello Norway!

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

document.getElementById("demo").innerHTML = "This document contains " + myCollection.length + " paragraphs.";

The first paragraph (p0) This site is mobile accessible ... is only visible to mobile device users. Otherwise the example would say 3 paragraphs if the mobile device specific paragraph did not exist. Just because that paragraph is not displayed for computer users does not mean the paragraph does not exist. Just look at the source code of the page and it will be seen in the source code.