My HTML has a problem


#1

Im Trying to make something private for my friends to use but it does not work

<!DOCTYPE html>
<html>
	<body style="font-family:Comic Sans MS">
		<b>Lvl2.What Now?</b>
		<b>Maybe.. Click Something?</b>
		<p id="demo" onclick="myFunction()">Click Something i think</p>
		<script>
			function myfuction() {
				document.getElementById("demo").innerHTML = "Dang it..."
			}
		</script>
	</body>
</html>

Please Reply... :smiley:

This one works but this is my 1st level...

<!DOCTYPE html>
<html>
<body>
	<p id="demo" onclick="myFunction()">Lvl1.Click Me</p>
	<p>me</p>
	<h3>me</h3>
	<p>me</p>
	<h3>me</h3>
	<p>me</p>
	<h3>me</h3>
	<p>me</p>
	<h3>me</h3>
	
<script>
function myFunction() {
	document.getElementById("demo").innerHTML = "GOOD WORK!"
}
</script>
</body>
</html>

Whats Different?


#3

No we can't. What happened to the template that you were given when you clicked + New Topic?

To format your code, select it all and use the </> button on the toolbar.

It will help to include a LINK to the exercise you are stuck on, as well as the error message that you are seeing.


#4

Done can you see the problem?


#5

I have moved it over to the Corner Bar where we talk about things that are not related to Codecademy exercises. Hopefully someone will come along and help you with your JavaScript.


#6

Describing what it's doing differently from what you want says a lot about what to look for!


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.