Fork of HTML Starter, Hello World
✓ Published0🌍 Public
This example demonstrates a simple interactive color-changing interface built with plain HTML, CSS, and JavaScript. It shows a "Hello World" message and a button that, when clicked, toggles a pink background color on both elements through classList.toggle. The page uses the DOM API via document.querySelector to select elements and add an event listener. The styling uses CSS grid to center content and defines a light yellow background with a lightgreen message box.
AI-generated descriptionMIT Licensed