If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Welcome to Mac-Forums! Join us to comment and to customize your site experience! Members have access to different forum appearance options, and many more functions.

I know on a pc you can write html code in note pad, save it as html document and then open it in a web brouser to see how it looks.

I tried doing this on by writing html code in textedit, saving as an html and then opening it in safari but nothing shows at all or if i save it in other formats then you can see the tags from html code. please help me where I am going wrong. I want to start writing code on my mac

After entering your HTML code in TextEdit, click on "save as" from the "File" menu. Uncheck "Hide extension" at the left bottom left corner and type the name of the desired filename at the top with the ".html" extension (I tried saving the file with UTF-8 encoding, and it worked perfectly).

If safari is not your default browser, then secondary click (command+click) on the file that you just saved and chose "safari" from the "Open with" menu.

After entering your HTML code in TextEdit, click on "save as" from the "File" menu. Uncheck "Hide extension" at the left bottom left corner and type the name of the desired filename at the top with the ".html" extension (I tried saving the file with UTF-8 encoding, and it worked perfectly).

If safari is not your default browser, then secondary click (command+click) on the file that you just saved and chose "safari" from the "Open with" menu.

I tried this and open with safari and it shows all the html tags. I dont understand it.

There is a weird (?) thing about opening a file with ".html" extension using TextEdit --- it opens up as an HTML document (you're in a kind of WYSIWYG mode), but you really want to open it as a plain text in order to able to edit it using your own HTML tags. Here's a workaround:

1. Open TextEdit
2. Insert the above HTML code that you just posted
3. Go to format on the menubar and select "Make plain text"
4. Then save the file as "filename.html" using "Save as" option under "File".
5. Open "filename.html" with Safari.

I'm very sure that the problem you're seeing is because you're editing in HTML mode. So before entering your code make sure you are in the plain text mode. Let me know if it works. Good luck!

There is a weird (?) thing about opening a file with ".html" extension using TextEdit --- it opens up as an HTML document (you're in a kind of WYSIWYG mode), but you really want to open it as a plain text in order to able to edit it using your own HTML tags. Here's a workaround:

1. Open TextEdit
2. Insert the above HTML code that you just posted
3. Go to format on the menubar and select "Make plain text"
4. Then save the file as "filename.html" using "Save as" option under "File".
5. Open "filename.html" with Safari.

I'm very sure that the problem you're seeing is because you're editing in HTML mode. So before entering your code make sure you are in the plain text mode. Let me know if it works. Good luck!

sweet worked like a charm I am now going to try build a forum from scratch. bit stuck with the php at the moment though lol