how to add checked in input tag using javascript code example Example: html checkbox status app.innerHTML = '<h1>Hello, world!</h1>';