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 trialAdin Eichler
1,747 PointsText wrapped between <a href ...></a> doesn't show on webpage.
I've written this code:
<p>If you'd like to follow me on Twitter, my username is <a href="https://www.youtube.com">@nickrp</a>.</p>
However, on the webpage the "@nickrp" does show up; the sentence ends abruptly after "is".
AFAICS, my code's precisely like Nick's.
Thanks for your help.
7 Answers
Damien Watson
27,419 PointsHi Adin, I just added the below to a new page and it displays fine.
The code I have used is below, if you still have issues, post your code and I'll try and help.
If you'd like to follow me on Twitter, my username is <a href="https://twitter.com/nickrp">@nickrp</a>.
Damien Watson
27,419 PointsThe code you posted looked fine, you may need to post what is above it as something there may not be closed properly.
Ryan Field
Courses Plus Student 21,242 PointsAdin, to have your code display here on the forums, you need to type it like this:
```html
(paste your code here)
```
Adin Eichler
1,747 PointsHi, John!
Thanks. I'm new at this. Sorry.
Here's my code:
<p>If you'd like to follow me on Twitter, my username is <a href="https://www.youtube.com">@nickrp</a>.</p>
John Burkhard
16,314 PointsUnfortunately we can't read your code because you need to use Markdown syntax to display code blocks. At the bottom of this thread is a link to the Markdown Cheatsheet. Click on that and follow the formatting guidelines for copying in code. If that doesn't work you can past your code into something like pastebin.com and send us a link to it as well.
Damien Watson
27,419 PointsYou can also just add a 'comment' which doesn't increase the amount of answers a question has.
Adin Eichler
1,747 PointsHi, Damien!
Here's my code:
<p>If you'd like to follow me on Twitter, my username is <a href="https://www.youtube.com">@nickrp</a>.</p>
As far as I can see it only differs from Nick's in that my link is youtube instead of twitter.
Adin Eichler
1,747 PointsThanks, Damien!
I think I might have found out what's amiss.
The @nickrp does show up, but when I select it once, the link is still there but doesn't show up anymore, since it was selected.
I need to do something to the code in css to make it show up even after it's been selected.
How to do that I don't know. :-/
John Burkhard
16,314 PointsDrop your CSS and see if things appear normally then go back through and add your CSS rules that relate to links.
Adin Eichler
1,747 PointsJohn,
Thanks so much for your help.
Also, thanks to everyone who replied for your help.
I very much appreciate it!!
:-) Adin
Adin Eichler
1,747 PointsJohn,
Following your advice, I did drop my CSS, then went back through, adding the CSS rules that relates to the link.
Now it works!!! :-)
Thank you again.
John Burkhard
16,314 PointsSure thing! Glad its working.
John Burkhard
16,314 PointsJohn Burkhard
16,314 PointsNeed to see your code to give you a better answer. Use Markdown to copy in your code to the thread.