9 CSS ID Selectors


#1


https://www.codecademy.com/en/courses/make-a-website/lessons/closer-look-css/exercises/id-selectors?action=resume

Error Message: "Cannot read property of testweb undefined"

  <p id="footer">&copy; Mystwood Publishers Limited</p>

I'm not sure what I'm doing wrong. I already know about ids and classes -- I've been doing these exercises mainly as a refresher to HTML and CSS. What am I doing wrong?!


#2

Can you paste in all of your HTML


#3

<!DOCTYPE html>
<html>
<head>
	<title>Sprout</title>
	<link rel="stylesheet" type="text/css" href="main.css"/>
</head>
<body>
	<h1>Mystwood Publishers Ltd.</h1>
	<div class="hero">
		<h2>Sprout.</h2>
		<p>A book by J. Daniel Bedford</p>
		<a href="#">Read now.</a>
	</div>
  <p id="footer">&copy; Mystwood Publishers Limited</p>
</body>
</html>

#4

Can you please send through a screen shot.. I can't see anything wrong with code


#5

Hey! Somehow the issue resolved itself. (or they looked at my bug report)

I think it was some error in the platform itself -- because I checked maybe 10x and tried so many different variations -- and I received various different error codes.

Thanks!


#6

Hey,

Thats great :slightly_smiling:

Maybe was a glitch, refreshing browser or switching browser can solve..

Happy Learning :slightly_smiling:
Happy coding !

What inspired you to learn programming/coding?
Join the discussion