Why doesn't this simple codework for me?

< !DOCTYPE html>
< html>
< head>
< title>
SS
< /title>
< /head>
< body>
< script type=“text/javaScript”>
document.getElementById(“you”).innerHTML = “hello”;
< /script>
< p id=“you”> < /p>
< /body>
< /html>

The Javascript code is correct… Your HTML tags has spaces you need to remove them

<title> no space between <and t
Applies to all HTML tags

Don’t forget [quote=“dr_palsonph_d, post:1, topic:23626”]
< !DOCTYPE html>
[/quote]

Also [quote=“dr_palsonph_d, post:1, topic:23626”]
“text/javaScript”>
[/quote] change to lowercase s

thanks, for the help!

1 Like