Skip to content
Advertisement

Tag: text-formatting

Why doesn’t JavaScript newlines work inside HTML?

I have the following: As you probably all know, n doesn’t work and I have to use <br> instead. It won’t work either if I link to an external .js file. Here are my questions: Why doesn’t n work? Why does <br> even work? Shouldn’t everything that’s inside the script tags be strictly JavaScript instead of a dirty mix between

Advertisement