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

iframe soundcloud embedding won't work

I am entering the following code, copied from the embed section of soundcloud into the html body section. But it wouldn't show up on the website.

<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/81241452&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>

Thanks.

Hey Anita A,

I think your code has disappeared haha Can you try reposting the code but this time wrap the code as seen in the Markdown Cheatsheet? Treehouse only allows tags within code blocks on the forums.

4 Answers

oh sorry, here's the code:

<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/92941169&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>

I realised that it works in chrome but not in Firefox. thanks

Are you using the latest version of Firefox? I plugged the iframe code into a test.html file I have laying around, loaded it into Firefox, and I'm now playing "Neats - Cynical" which has a "neat" electronic feel. :)

I'm actually using the firefox developer browser, which I believe is the latest. will try it in the normal firefox. good to know it works. thank you :)

If it still doesn't work for you, copy and paste your full code here. And by the way, I ran into this problem when posting code at first myself, but there has to be a line in between text and the opening block of code. When you post the code it should look like this:

<iframe width="100%" height="300" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/92941169&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>

Yeah I wasn't sure why it did that! great, thanks for your help :)

My pleasure! If you ever need anything, you can tag me on here with the @ symbol or shoot me an email at: marcus.parsons@gmail.com. :)

thank you!