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!

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 Foundations CSS Gradients Linear Gradients: Unprefixed Syntax

Fedor Andreev
Fedor Andreev
6,438 Points

What is the main difference between Unprefixed Syntax and Prefixed Syntax?

Just wondering..

2 Answers

An example of prefixed syntax is -moz-border-radius, which is a vendor specific prefix for earlier Mozilla Firefox versions that don't support un-prefixed syntax i.e. border-radius. Basically prefixed syntax supports earlier versions of the respective browser the code is targetting - -webkit- targets earlier versions of webkit browsers that don't support their unprefixed counterparts.

Brandon Miller
Brandon Miller
6,818 Points

So, "prefixed" is "vendor-specific"? Is that right? And un-prefixed is more loosely defined, yet may not be supported by all browsers?