Challenge Hints: Buttons/Event Listeners

A list of hints for the challenges in the Buttons/Event Listeners lesson.

Last updated - July 12, 2023

Checkpoint Try adding onclick="alert()" to an element tag
Knock Knock Joke

<h1>   </h1>

onclick="alert('   ')"

Fortune Teller

<h1>   </h1>

onclick="alert('   ')"

Pet Names

<h1>   </h1>

onclick="alert('   ')"

HTML Color Guesser

<h1>   </h1>

onclick="alert('   ')"

style="background-color:  "

Fascinating Facts

onclick="alert('   ')"

Does your onclick statement have the correct quotation marks?

Do you have a header with the question about how long a housefly lives?

src="   "

For more help with HTML, check out our HTML Cheatsheet!