const title = document.querySelector('#title');
const description = document.querySelector('#description');
const author = document.querySelector('#author');
const button2 = document.querySelector('#button2');
const output = document.querySelector('#output');
button2.addEventListener('click', function (){
output.innerHTML = "<div class='card'>" +
"<h2>" + title.value + "</h2>" +
"<p>" + description.value + "</p>" +
"<p>Автор: " + author.value + "</p>" +
"</div>";
})