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

CSS

Why isn't the viewport meta-tag in the index file?

Hi I'm doing "CSS Layout Basics" now and..

I noticed you told us that the new browsers have a feature "toggle device toolbar". This is very handy when doing responsive designs. So my question is why isn't

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

included in the index-file? I know I can just add it myself, but doing that every time I launch the workspace seems unnecessary since it should be included from the beginning.

Other than that - thanks for awesome lecturing. Keep up the good work!

// A

1 Answer

Hi There!

It's really a good thing that they are creating the habit of manually placing that meta tag. It will fix it in your mind and you'll never struggle with it in a real project.

Been there, suffered that. :)

With that in mind, we shouldn't have a boilerplate for any html, no csslinks or any other script links. Also in later courses they started adding it, this is why I wondered about it.

Thanks for the answer :).