const contact_btn = document.querySelector('#cms_contacts'); // id
const block = document.querySelector('.block'); // class
const sub_contacts = document.querySelector('.header_sub_cms_contacts'); //class
<block></block>
<div class="block"></div>
document.getElementById('div1').innerHTML =
'<input type="text" name="text1" class="form-control w-50"/>';
document.getElementById('div1').innerHTML +=
'<input type="text" name="text1" class="form-control w-50"/>';