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
juan reyna
4,907 Pointsvideo on web site
does anybody know where where i n the librar i can find how to put a video on website with the new improovements of html5 and css? thank you
2 Answers
James Barnett
39,199 PointsHere's a simple demo on codepen that I made for you, that shows how to embed video.
You can read more about embedding video on the HTML5 Rocks page on video
Guled A.
10,605 PointsI'm not sure I've come across a video in the library regarding HTML5 Videos, but here the basic syntax below:
There are two components: <video [height] [width] controls> and the <source [type]> tags
<video width="300px" height="300px" controls>
<source src="<!--Source of Video Goes In Here-->" type="video/mp4">
</video>
The type of the video can be altered.
juan reyna
4,907 Pointsthanks
juan reyna
4,907 Pointsjuan reyna
4,907 Pointsthank u so much james