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 Adding Pages to a Website Add a New Page

Adin Eichler
Adin Eichler
1,747 Points

Text 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.

John Burkhard
John Burkhard
16,314 Points

Need to see your code to give you a better answer. Use Markdown to copy in your code to the thread.

7 Answers

Damien Watson
Damien Watson
27,419 Points

Hi 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
Damien Watson
27,419 Points

The code you posted looked fine, you may need to post what is above it as something there may not be closed properly.

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

Adin, to have your code display here on the forums, you need to type it like this:

```html

(paste your code here)

```

Adin Eichler
Adin Eichler
1,747 Points

Hi, 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
John Burkhard
16,314 Points

Unfortunately 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
Damien Watson
27,419 Points

You can also just add a 'comment' which doesn't increase the amount of answers a question has.

Adin Eichler
Adin Eichler
1,747 Points

Hi, 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
Adin Eichler
1,747 Points

Thanks, 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
John Burkhard
16,314 Points

Drop your CSS and see if things appear normally then go back through and add your CSS rules that relate to links.

Adin Eichler
Adin Eichler
1,747 Points

John,

Thanks so much for your help.

Also, thanks to everyone who replied for your help.

I very much appreciate it!!

:-) Adin

Adin Eichler
Adin Eichler
1,747 Points

John,

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
John Burkhard
16,314 Points

Sure thing! Glad its working.