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

HTML Build a Simple Website Text Editors and HTML Images and Lists

Index.html

When I drag my index.html to google chrome I get this: Your website.

Create and publish your own website quickly and easily using iWeb, Pages, and many other applications available for Mac OS X.

It’s a snap to create and publish your own website from your Mac. When your site is ready, it’s just as easy to publish it.

Open System Preferences and click Sharing, then select Web Sharing.

Your done. Your site is now available on your private network at home or work.

If you’re connected to the Internet, it can also be available to friends everywhere. Just send them the address shown in Sharing preferences.

Apache Power Web Sharing is built on the Apache web server, an industry standard technology included with Mac OS X. For more information about the Apache web server, see the Apache manual.

Because this computer is owned by my company I don't see a "web" sharing option? Can you help?

2 Answers

Mike Baxter
Mike Baxter
4,442 Points

Web Sharing is only necessary/useful if you want to view that site from a different device, but they both have to be on the same network. For instance, if I make PHP form on my computer, and then I want to test it on my iPhone—and they happen to be on the same network—then I can use web sharing.

So first I would say, is it even necessary? You can load any HTML page you make immediately in a web browser—there's no need for web sharing unless you want to view it on another device on the same network. If you're just learning HTML, I would advise against trying to set this up. (However, if you're learning PHP, it's nearly essential.)

If you decide you really do need to go to the trouble to do web sharing to view your stuff on another device, check your OS version on Mac. (Click the Apple, then "About This Mac", then look for the version number.) The current version (Mavericks) is 10.9.1. On Mavericks—this latest OS release—they removed the "web sharing" option and made it on by default. If you want to do PHP, however, you have to do some custom command-line stuff to get it work.

Hopefully you don't have to deal with any of this!

Avoid making websites in Pages, Microsoft Word, iWeb, or anything like that. Take a look at the new "How to Make a Website" project—it'll get you up to speed really quick. If you're not interested in learning but just want to make something, I recommend looking into something like Squarespace, which has really nice drag and drop features.

Hope that helps!

Richmond Lauman
Richmond Lauman
28,793 Points

Hi Angela.

If I understand correctly, you just want your index page to display in Chrome when you drag the file into Chrome and you don't want the ad for iweb and nonsense about web sharing options. Is that right?

I am not sure why you get that. When I drag an html file to Chrome it just displays the page, but I have a PC. Maybe it is a Mac thing... Anyway, you can always browse to the index file and open it from Chrome if dragging is not working for you.