Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
I do not see anything when I open Safari and the the file I saved have an .rtf extension that I can't change
anyone who can help
nico dev20,364 Points
Ideally, like Nick said, use Notepad (if you're in Windows) or TextEdit (if you're on a Mac), or otherwise any plain-text editor (not one that applies advanced formatting tools, etc.).
Then, again, if you already saved it as .RTF, you should still be able to right-click on the file, select
Rename, and give it a new name, and you should name it index.html. Another option is to just click once in the name, then click again (not a double-click, but two single ones); that should make it possible for you to change the name.
If you're not successful with none of the above, just delete the file. And then go to Notepad/TextEdit (you should have at least one of those) and create a new file. Then make sure not to choose the Save option, but "Save as", and there you can change the name to index.html.
Hope that helps!
nico dev20,364 Points
Sorry that I answer again, but I guess I found out what is your problem.
I found the following explanation here :
EDITING HTML IN TEXTEDIT IN OS X 10.7 AND LATER
Create your HTML document by writing the HTML codes in TextEdit. When you are ready to save do not choose "Web Page" in the file formats drop-down menu. If you choose this, all of your HTML codes will appear on the page.
- Go to the Format menu and choose “Make Plain Text.” You can also use the shortcut key Shift+Cmd+T.
- Save the file with an .html extension. Then you can edit the file in any other text editor as plain HTML. However, if you want to edit it in TextEdit later, you need to change TextEdit preferences.
- If you don't change the TextEdit preferences, TextEdit opens your HTML file as an RTF file, and you lose all the HTML codes.
To change the preferences:
- Open TextEdit and choose “Preferences” from the TextEdit menu.
- Switch to the “Open and Save” tab.
- Mark the check box in front of “Display HTML files as HTML code instead of formatted text.”
It helps to change TextEdit's default to text files instead of rich text if you use it to edit HTML a lot. To do this, switch back to the “New Document” tab and change the Format to “plain text.”
I hope (and trust) that will help you solve your issue. Keep on coding!