w3 getelementbyid code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: javascript getelementbyid
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');
Example 3: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";