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.

HTML HTML Introduction First Steps

I am on my mac using TextEdit and I'm not sure what file format i should save my work for it to upload as a webpage

can someone tell me what file format to save my work so it can show on a web page.

9 Answers

Michael Hulet
Michael Hulet
47,843 Points

Just save it with the proper extension for the language that it's written in.. HTML is .html, CSS is .css, and JavaScript is .js

when i am doing that all my tags are still showing on the webpage

Michael Hulet
Michael Hulet
47,843 Points

That means that there's a syntax error in your HTML somewhere. It sounds like you didn't close a tag somewhere

Michael Hulet
Michael Hulet
47,843 Points

If you give me a link to your site, I might be able to help find the problem

Mo Daka
PLUS
Mo Daka
Courses Plus Student 10,363 Points

Yes, what Michael Said. If you can copy and paste your code here so we can have a look I'm sure we can help you nail down the issue.

:)

Hi Qamar,

TextEdit is a word processor and would need to be configured to work with text files. I recommend that you switch over to a dedicated text editor like sublime text. You can do a search for "Mac text editor" to get some other options.

Michael Hulet
Michael Hulet
47,843 Points

TextEdit Alpha is free, and it works very well. I ended up using it more than Sublime, though I use a combination of Atom and Brackets now

its difficult to explain, all my tags are showing on my webpage because i think the file format is not the correct one

Michael Hulet
Michael Hulet
47,843 Points

Could you post a link to your site? That way we can see all the code and how its set up, which will help us a lot in helping to find and fix the problem

i don't have a link to my site, I'm just starting off and whatever i type on textedit just comes up on a webpage, if that makes any sense

Michael Hulet
Michael Hulet
47,843 Points

I see. You're just developing locally. In that case, please follow the Markdown Cheatsheet (right under the new comment box on this page) to post all of your HTML here

Thanks a lot guys i found out what the problem was, it was to do with my TextEdit was not set to plain text but was set to rich text, a little complicating to understand

edwin scott
edwin scott
6,043 Points

I am having the same problem. Could you please explain what you did so I can try on textedit on my mac? Thanks!

Hi Edwin,

You either have to configure textedit to work with plain text files or switch to a dedicated text editor.

Try a search for "configure textedit to work with text files" or if you want to switch to a text editor then try searching for "mac text editor"

There's a few recommendations on this page.

Mo Daka
PLUS
Mo Daka
Courses Plus Student 10,363 Points

if it's the html save it as .index if it is your css save it as .css

It won't work if it's .index, it should be index.html

edwin scott
edwin scott
6,043 Points

This is what I got so far but all my tags are showing on my webpage. What do I have to do to fix the problem?

<!doctype html>

<html lang=“en”> <head> <meta charset=“utf-8”> <title>My Page</title> </head> </html>