Revised code still cannot pass challange

Revised code still cannot pass challange
0

#1

**Tell us what’s happening:**cannot complete challange

Your code so far

<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;
  }
</style>
<img src= "https://bit.ly/fcc-relaxing-cat" alt="point toward cats">
<h2 class="red-text">CatPhotoApp</h2>

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36.

Link to the challenge:


#2

I would suggest to reset your code in the code editor and type in your code again.

Also don’t forget to close your img tags at the end, like this:

<img src="https://www.your-image-source.com/your-image.jpg" alt="your description here" />

#3

i have reset it twice. i dont think im even in the ballpark of understang this challange. but i will reset it again


#4

Let’s break it down:

All html elements can have attributes.

These attributes look like key=value pairs.

So for example, in the <img> element we can set the source of the image with the src attribute: src='http://path.to.image.com'

A really important attribute is class. On it’s own, class does nothing, but when you have a style rule that depends on that class, like .smaller-image (note, the . means class in a css stylesheet), it can change the style of that element.

Elements can have many attributes so it’s not uncommon to see something like this:

<img class='special-style-rule' src='/image.png' alt='a picture' />'

See if you can piece all that together to pass your challenge.


Not sure where to place this .one side tells me to place it with the css the other tells me to to put it where the h2 and p are because its a img element
#5

Note: I just realised I posted this in the wrong thread - but it should help you pass them both anyway.


#6

i know that my css code goes between the style tags ive tried doing that and it doesnt . i think i have html and css code. but cant html or css to work


#7

this is what ive come uo with. been on this challange 2 days.

<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }
</style>

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

<img src="https://bit.ly/fcc-relaxing-cat".width:100px; alt="A cute orange cat lying on its back. ">```

#8

I tested your original code posted 2 days ago and your most recent code and both pass the tests.