HTML on Textedit
Posted 22 April 2010 - 04:14 PM
i got a project from school to design a web site using HTML codes on snow Leopard. Now i know to use Textedit, but when i type it up and save as a HTML like this
TEST TEST TEST
and open it in safari or firefox it doesn't read the codes, but if i try on Windows with Notepad using the same test as above and save as HTML and open in internet explorer, it will read it!
is there anything i'm doing wrong on the MAC??
Posted 22 April 2010 - 05:04 PM
That way it should work. It did for me just before.
What OS are you running? TextEdit might work differently if you're on something else (I'm on Snow Leopard). But I don't know why that would be the case.
Posted 22 April 2010 - 06:11 PM
below i posted the pics and did the following steps
Posted 22 April 2010 - 07:34 PM
<title>This is a Test</title>
Some content here.
The code worked for me in Safari but I also ensured that I selected Format > Make Plain Text before I started to write anything. In addition, when saving the file, I replaced the extension "txt" with "html" in the Save dialogue sheet.
Two more points: the html tag shouldn't be capitalised and check and, if necessary, change the HTML options in TextEdit preferences.
Posted 22 April 2010 - 07:48 PM
Number of downloads: 4
Posted 23 April 2010 - 04:29 AM
It is controlled in Preferences.
For what you want… In Preferences, TextEdit has two sets of preferences — one for “New Document” and one for “Open and Save”. In the former, select “Plain text” instead of “Rich text”. (This makes it a text editor instead of a word processor.) In the latter, turn on “Ignore rich text commands in HTML files” to see what you typed, and turn ignoring off to see the browser version.
It does not change on the fly; you have to do the “New Document” thing before you create the file, and you have to do the “Open and Save” thing before you open a file. (If you have accidentally made your HTML code in rich text format, you can get it across to another file by copying, changing the Preference, making a new (text) file, and pasting.)
Tip: I tried making two instances of TextEdit.app, each with different preferences (one for text and one for RTF); as I recall, this worked.
Posted 16 July 2011 - 02:46 AM