const books = document.querySelectorAll('#book-list li .name'); Array.from(books).forEach(function(book){ book.textContent += ' (Book title)'; }); const bookList = document.querySelector('#book-list'); bookList.innerHTML = '

Books and more books...

'; bookList.innerHTML += '

This is how you add HTML content

';