.photo-container p { font-size: 14px; color: #666; } JavaScript:
gallery.appendChild(photoContainer); }); This is a basic example to get you started. You'll need to expand on this code to include filtering, favorites, and download options.
const caption = document.createElement('p'); caption.textContent = photo.caption;