Help with the nesting

Help with the nesting
0

#1

I cannot run through the test. Please take a look at my code. I dont really know what cause the problem.I will really appreciate it.

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>
  <p> View more 
      <a> href="http://www.freecatphotoapp.com">cat photos</a>
  </p>
  <a href="http://www.freecatphotoapp.com">
      cat photos
  </a>
   <img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "/>
    <p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
    <p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

#2

Did you copy and paste all that in here and it formatted the images and stuff for you? I don’t think the forum likes raw HTML!

Try editing your post using these code formatting guidelines.


#3

Thank you Jackson. I am a rookie. I will read that guideline first.


#4

No worries - normally we let it slide, but in your case it’s kinda impossible to help unless we see the unrendered code :slight_smile:


#5

Fixed your formatting. The problem is that you’re using href between the anchor tags. It’s an attribute of the anchor tag and has to be used like this:

<a href="https://www.somelink.com">Some Link</a>

You’ve made a typo and added the ‘>’ too soon.