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

JavaScript JavaScript Foundations Strings Basics

Ryno Botha
PLUS
Ryno Botha
Courses Plus Student 4,055 Points

Bummer! You've the string is the incorrect value remember to use \ before the " or '.

But I did do it xD

Can anyone please let me know if you see something wrong ^^

Thanx~

var statement = 'she said "How\'s the family?"';

7 Answers

Hey Ryno Botha, can you please tell me where I may be going wrong.....I have created my "Contact" page, but for some strange reason, the browser keeps on saying "..../index.html" instead of "...contact.html"...I have followed the tutorial several times over, refreshed the browser and still no where.....Would appreciate your help if you're able to...Thanks...

Ryno Botha
Ryno Botha
Courses Plus Student 4,055 Points

Can you send me the code you used in your HTML? x)

You'll be able to paste your Code like this:

```

Paste your code

```

It is important to use the 3 ` before and after the code x)

<body> <header> <a href="index.html" id="logo"> <h1>Sidony Smith</h1> <h2>Web Design Consultant</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> </nav> </header>

oh snap...tried to copy and paste it here....obviously that didnt work...aaaahhhh...wwwuuuusssaaaa!!!

ok, in the Nav element, I wrapped it in the (a href) attribute witha "class="selected" >Contact...with the correct closing...

Ryno Botha
PLUS
Ryno Botha
Courses Plus Student 4,055 Points

in the contact.html it should look like this:

<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">Conatct</a></li>
     </ul>
</nav>
Ryno Botha
Ryno Botha
Courses Plus Student 4,055 Points

Make sure your using contact.html and not Contact.html

Ryno, I honestly cant see where it is that I have gone wrong...I created the file in the right place...and its still not working....followed your exact code and it still has the index.html as the root...bummed out at this point..

Ryno Botha
Ryno Botha
Courses Plus Student 4,055 Points

Haha seems like you keep running into weird problems

Try going through the forums, see if people might have had the same problem x)

Go to Forum-

Just change Topics to HTML (Right Side)-

See if you can find something x)