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

CSS

My code is highlighted as if it were wrong, but its working just fine. WTF? is this gonna bite me in the x later?

``<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Red G.Rick | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Monoton|Share+Tech+Mono|Rubik+Mono+One|Metal+Mania|Calligraffitti|Caesar+Dressing' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="css/main.css"> </head>

<body>
    <header> <a href="index.html" id="logo">
    <h1>RParadise</h1>
    <h2>Red's Place</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" class="selected">Contact</a>
       </li>
      </ul>
      <ol></ol>
        </nav>
    </header>

  <div id="wrapper">
      <section>
        <h3>General Information</h3>
          <p>Put Info here</p>
          <p>More Info</p>
      </section>
      <section>
        <h3>Contact Details</h3>
          <ul class="contact-info">
            <li class="phone"><a href="tel:555-6425">555-6425</a></li>
            <li class="mail"><a href="mailto:red@example.com">red@example.com</a></li>
            <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name="nickrp">@nickrp</a></li>
         </ul>

      </section>


    <footer>
        <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class= "social-icon">
      </a>

<a href="https://myspace.com/berbarkhan"><img src="img/myspace.jpeg" alt="Myspace Logo" class= "social-icon"> </a>

          <p>&copy; 2014 Red G.Rick</p>
      </footer>
    </div>
</body>

</html> ``

The highlighting starts after the twitter link. Specifically i think something is wrong with the coed at

" <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name="nickrp">@nickrp</a></li>"

Problem spot at: li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name="nickrp">@nickrp</a></li>

3 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

You have an extra " in your link. The quotes should surround your link. Your code on the link should look like this:

<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nickrp">@nickrp</a></li>

Also, in the footer, there should not be a space after the = when assigning a class. Should be:

class="social-icon"

You've got a quote in the twitter link on this line that's messing with things:

<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name="nickrp">@nickrp</a></li>

Having your screen name in quotes is breaking the flow of the quotations normally.

Hi Red,

Noticed a few things that may be causing it.

  • As Nichole mentions you have an extra quote here:
            <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name="nickrp">@nickrp</a></li>
  • You have an extra closing anchor tag here:
<footer>
        <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class= "social-icon">
      </a><!-- This is correct -->

        </a><!-- This one doesn't look to have an opening tag -->
  • You have an extra space before the class name on this line:
        <a href="http://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt="Twitter Logo" class= "social-icon">

Hope that helps in some way :)

-Rich