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
Stanley Mui
Courses Plus Student 423 PointsHaving Problems with Youtube code on Textedit
HI,
I'm writing html code in TextEdit to showcase a youtube video but its not showing on the browser. Can anyone kindly see if the either something wrong with my code or is it my TextEdit setting?
Code is below:
<!doctype html>
<html lang="en">
<head> <meta charset="utf-8">
<title>Test Page</title>
</head>
<body>
<object width="560" height="315">
<param name="movie" value="//www.youtube.com/v/_dm_2G-rIOs?hl=en_US&version=3"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param>
<embed src="//www.youtube.com/v/_dm_2G-rIOs?hl=en_US&version=3" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
</body>
</html>
2 Answers
Scott Magdalein
2,406 PointsLooks like your code was stripped out or something. Only see html and body tags.
Generally, TextEdit isn't considered a very good editor. Maybe try TextWrangler?
Chris Howell
Python Web Development Techdegree Graduate 49,703 PointsYeah I think a bunch of your code got stripped out. You have to put 4 spaces for each line of code to keep it in the grey "code box" on the forum. Hit the space bar 4 times, copy those 4 spaces then paste it before each new line.
or you can use: http://codeviewer.org/upload
upload snippets of code there. Then post the link in the forum and we can go view it.
Just make sure you follow the "Markdown CheatSheet" just above the Reply button highlight in small blue text.