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



Smartphone icons created by Freepik - Flaticon

HTML DOM Methods

My First Page

document.getElementById("demo").innerHTML = "Hello World!";

This example changes the content (the innerHTML) of the <p> element with id="demo". In the example above, getElementById is a method, while innerHTML is a property.