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 Build a Simple Website Text Editors and HTML Creating Structure

About using a PC as opposed to a Mac.

so i am curious, in the video you are using a Mac, and i am using a pc while i practice as i do not have a mac lying around. when you source your images you use img/imgae.gif or whatever image you are using. how would i source on a pc? for images, and would a similair principle apply when using a video, or gif?

2 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Joseph,

Whether you use a PC or a Mac, this html convention is the same.

<img src="img/logo.gif" alt="Smells Like Bakin">

This html looks for your image source ('src') in the img folder and looks for an image named logo.gif. This is the same whether you are using a mac or a PC. Just make sure you have a folder created called 'img' otherwise the image won't load.

<img src="logo.gif" alt="Smells Like Bakin">

This would also work, but the logo.gif image would need to be located in the root, not in a folder named 'img'.

And yes, this works for any image file type (jpg, gif, png etc etc.)

For videos, especially if it is a YouTube video, I would recommend using YouTube's code that they provide you to display your video. There is a HTML5 tag for video, but it isn't compatible with all browsers, so can cause some issues.

Hope this helps, I can answer any other questions you have or if this hasn't answered your question just drop me a line.

thanks for the help. it really clarified a lot for me.