Forum

// create new element const elem = document.createElement(‘div’) elem.className = ‘quetxt’ // add text elem.innerText = ‘Question:’ elem.style = ‘color:#d55900; font-weight:700; font-size: 18px; margin-top:15px; margin-bottom:10px; font-family:Georgia;’ // grab target element reference const target = document.querySelector(‘.article-header’) // insert the element before…Continue reading