<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
```
</body>
<do not remove the three backticks above>
The “img” tag should be nested within “a” tag.
The second image is working fine. Note how it works and then apply your observation on the first image.
This will never work.
Explanation:
From nested I mean.
<a href="#">
<img src="#" />
</a>
I’m confused a little, your code doesn’t isn’t like the example it just closes right after. Nothing is in between the 's.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<a href="http://google.com"
<img src="https://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg" /></a>
<img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg" />
</body>
</html>
The first image is encapsulated within the a tags but its not doing anything when I click it. Unless I am missing something small but I can’t seem to find it.
I don’t know what just happened I just tried to post my code but the pictures came instead
your <a>
opening tag is missing the >
.
as for posting your code, read this:
To format code so it’s visible, either wrap it in single backticks for a small amount of code, or triple backticks on an otherwise blank line before and after for a large amount of code.
system
Closed
September 13, 2016, 6:22pm
15
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.