When you’re getting or setting an element in JavaScript, you have a lot of options — many of which seem exactly the same. InnerHTML returns the string inside our div and the HTML (or XML) markup ...