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


Why is this snippet of code not part of the first videos?

When viewing my portfolio website in Chrome on my LG L70 phone, it was in desktop format and I thought it would be more helpful if I could see what it would actually look like formatted for an android phone, because I thought it would be more helpful.

For me, It was helpful to see the difference.

Why didn't the teacher add this to the video?

<meta name="viewport" content="width=device-width, initial-scale=1">

4 Answers


Depends what video it is. You start form basics dont you? he introduce this later one . But like i said depends what video it is . Portfolio ? it teaches you about basics . Later one you will learn css foundations and you will learn about this as well. So you will learn about jQuery for resising the window like for desktop , tablet and mobile phone and in late stage he may introduce you to the code and you will see how helpful is that .

Hope you meant that :)

Hi Jeffrey,

Are you at an early stage of "How to make a website"?

If so, that code is added in at some point. Maybe the responsive stage.

I'm right at the responsive part and I chose to look for a solution myself and thought that if it wasn't part of the videos it would be nice to add it, because it helped me.

Thanks for your time!

Yeah, I jumped the gun, I just saw the part in the video about the snippet.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

It is in the video "Stage 8" "Responsive Web Design and Testing" "Adjust the Profile Page and Header".

I guess I was going a step ahead of the teacher.