Nest an anchor element

<link href="" rel="stylesheet" type="text/css">
  .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;

<h2 class="red-text">CatPhotoApp</h2>

<p> view more <a href="">cat photos</a></p>

<img class="smaller-image thick-green-border" src='//' alt="A cute orange cat lying on its <pback. ">

<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>

what is the mistake in the code

Where is the code? And what have you tried?

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


This is the only mistake I see, and it shouldn’t be impacting anything other than whomever reads the alt attribute with a screen reader:

... alt="A cute orange cat lying on its <pback. ">

Other than that, I’d need to know what you’re trying to achieve (i.e. what you’re expecting the code to do) and what’s happening instead.

Here’s what I see in the browser when I use your code:

EDIT: Also, take a look at this link to learn more about asking questions so you can get the answers you need:

You need head and body tags. You should put link and style tags inside the head tag and the rest of the markup inside the body tag.