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 CSS Basics (2014) Understanding Values and Units Em Units

Kim Gee
Kim Gee
3,841 Points

em

2 question - with HTML5 & CSS3 we use a different doc type than before in previous versions. As I understand this new doc type is for HTML5 & CSS3. My question is if I use an older doc type will HTML5 & CCS3 work properly? Second question -- If I use the old doc type will the "em" work the way they use to work or will I need to figure the new em idea at all times now?

2 Answers

You should always use the HTML5 doctype as the first tag. Not using it will put the browser into "compatibility" or "quirks" mode and will cause rendering issues with your markup.

You can read more HERE about using older doctypes and other fun information.

Kim Gee
Kim Gee
3,841 Points

Thank you. Read the article and the WWW3 standards for DOCTYPE. I will do as your and they say to.