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


Elliott Frazier
Elliott Frazier
Courses Plus Student 9,647 Points

What is a prefix ("-webkit-" "-moz-")

it would be great if someone could explain what a "prefix" is, and why browsers need a prefix when others don't, and why Firefox has a different prefix ("-moz-") than the other browsers.


3 Answers

Dale Gardner
Dale Gardner
9,838 Points

A prefix is exactly what you wrote: "-webkit-" "-moz-" etc. They are often called vendor prefixes. The reason to have the prefixes is because the web browsers are implementing new features before they are finalized in the W3C standard. Using the prefixes ensures that when the features are finalized, your website will not break if there are changes to the specification.