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

Samuel Shackelford
Samuel Shackelford
1,213 Points

quotes rules

In the video, Guil mentions that you can use either single quote marks or double quote marks for urls.

Is that globally the case for HTML and CSS (and other languages), or are there some instances in which one is accepted and the other is not?

Separate question: What is the standard practice - single or double quotes?

1 Answer

Steven Parker
Steven Parker
231,008 Points

Quote types are your option in CSS and HTML, just remember to always balance them. I don't think there's a "standard practice" that favors one over the other.

But in other languages, they might have different uses. For example, in C# double quotes enclose a string, and single quotes enclose a single character.