These methods are actions you can perform on HTML Elements and the properties are values of HTML Elements that you can set or change.

<!DOCTYPE html>
<html>
<body>

<h1>My First Page</h1>

<p id="test"></p>

<script>
document.getElementById("test").innerHTML = "Hello JavaScript!";
</script>

</body>
</html>

OUTPUT :


My First Page