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 trialArjay Jean
1,922 PointsWhich is preferred, "http://" or "www." ?
As I was trying to add a link into my "href" it only accepted "http://".
Is "www." not accepted/
1 Answer
Steven Parker
231,236 PointsThe "www" would be part of the domain name, it's not a substitute for a protocol specifier. Some sites begin with "www" but many don't, and some work with or without it. It all depends on how the site owner has configured their DNS (domain name service).
The "http://" is a protocol specifier and must be supplied for operations that require it, regardless what the rest of the name is.