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

Karl Peterson
seal-mask
.a{fill-rule:evenodd;}techdegree
Karl Peterson
Front End Web Development Techdegree Student 2,184 Points

The link to my Twitter page isn't working on the Intro to HTML and CSS exercise. Please help.

I can't get the link on the Twitter logo to go to my twitter feed. It's supposed to open it on another page. What did I do wrong? Here is the line of code: <li><a href="https://twitter.com/KarlPet25648030" class="social twitter">Twitter</a></li>

2 Answers

Hi Karl Peterson,

There doesn't seem to be anything wrong with your link. We'd need to see the complete HTML document to verify that there's nothing else within the markup that would cause an error leading to the link not working. So if you're able to paste your code, or fork your workspace we can provide more guidance.

As far as the link not opening in a different page, you'll need to add the target attribute to your anchor element.

Here's a link to an article on the anchor element, which includes information on its available attributes:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes

Karl Peterson
seal-mask
.a{fill-rule:evenodd;}techdegree
Karl Peterson
Front End Web Development Techdegree Student 2,184 Points

Brandon, I finally fixed the problem. I was using Firefox to do the assignments and it worked at first, but after a break, I came back and the webpage wasn't changing as I made changes in the code. I switched to Chrome and reopened the class and everything started working great. I think somehow the link between the workspace and the website got broken so it wouldn't update. Now, everything is working great in Chrome. I appreciate you, Brandon, for looking at my question and giving me feedback.