Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website CSS: Cascading Style Sheets What is CSS?

I have coded CSS to change the color of my copyright sign/name and it wont work and it also comes up as a hyperlink

This is my code, as you can see the first few lines after <style> is my CSS code that should make <footer> (copyright tag and name at the bottom of the body) the color green then over written to color orange but neither seem to work and now my copyright name seems to be a hyperlink to my facebook.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Joe T | Designer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <style>
    footer {
        color: green;
      }
      footer {
        color: orange;
      }
    </style>
  </head>
  <body>
    <header>
       <a href="index.html">
      <h1>Joe Thompson</h1>
      <h2>Designer</h2>
         </a>
      <nav>
      <ul>
        <li><a href="index.html">Portfolio</a></li> 
        <li><a href="about.html">About</a></li> 
        <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <section>
      <ul>
   <li>
     <a href="img/numbers-01.jpg">
        <img src="img/numbers-01.jpg" alt="">
       <p>Experimentation with color and texture.</p>
      </a>
      </li>
        <li>
     <a href="img/numbers-02.jpg">
        <img src="img/numbers-02.jpg" alt="">
       <p>Trying to create an 80s style picture.</p>
      </a>
      </li>
         <li>
     <a href="img/numbers-06.jpg">
        <img src="img/numbers-06.jpg" alt="">
       <p>Photoshop testing for 80s</p>
      </a>
      </li>
         <li>
     <a href="img/numbers-09.jpg">
        <img src="img/numbers-09.jpg" alt="">
       <p>texture and color.</p>
      </a>
      </li>
         <li>
     <a href="img/numbers-12.jpg">
        <img src="img/numbers-12.jpg" alt="">
       <p>Experimentation website images.</p>
      </a>
      </li>

  </ul>
      </section>

    <footer>
      <a href="http://twitter.com/fvckjdsds"><img src="img/twitter-wrap.png" alt"twitter logo"</a>

<a href="http://facebook.com/joemufc"><img src="img/facebook-wrap.png" alt"facebook logo"</a>


     <p>&copy;2014 Joe T</p>
     </footer>
  </body>
</html>

EDIT by Saskia Lund : I fixed your code insertion :)

</body> </html>

(wouldnt let me fit the last two lines in the post)

EDIT: Fixed it Saskia Lund

1 Answer

Henrik Christensen
seal-mask
.a{fill-rule:evenodd;}techdegree
Henrik Christensen
Python Web Development Techdegree Student 38,322 Points

You have a problem in the footer because you forgot to close your img tag and because of that it think it's all a hyperlink and you are missing a = in the alt attr too.

 <a href="http://twitter.com/fvckjdsds"><img src="img/twitter-wrap.png" alt"twitter logo"</a>

Try this instead and I'm 99.99% sure it will do the trick ;-)

 <a href="http://twitter.com/fvckjdsds"><img src="img/twitter-wrap.png" alt="twitter logo"></a> // missing > and a =

This correct. :)