When I format my code like this
const title = document.getElementById("title");
function handleClick() {
title.style.color = "red";
}
title.addEventListener("click", handleClick);
everything works fine. However, if I change it to this
const title = document.getElementById("#title");
function handleClick() {
title.style.color = "red";
}
title.addEventListener("click", handleClick);
it stops working. Can someone please explain why this is happening? Thank you.