HTML on Textedit
#1
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
<HTML>
<body>
TEST TEST TEST
</HTML>
</body>
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??
thanks
#2
Posted 22 April 2010 - 04:43 PM
#3
Posted 22 April 2010 - 04:58 PM
#4
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.
#5
Posted 22 April 2010 - 06:11 PM
below i posted the pics and did the following steps
Attached File(s)
#6
Posted 22 April 2010 - 07:34 PM
<head>
<title>This is a Test</title>
</head>
<body>
Some content here.
</body>
</html>
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.
#7
Posted 22 April 2010 - 07:48 PM
Attached File(s)
-
4.tiff (89.22K)
Number of downloads: 4
#8
Posted 22 April 2010 - 08:09 PM
#9
Posted 22 April 2010 - 09:15 PM
#10
Posted 23 April 2010 - 12:13 AM
#11
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.
#12
Posted 23 April 2010 - 04:20 PM
Yes.
#13
Posted 23 April 2010 - 10:47 PM
#14
Posted 16 July 2011 - 02:46 AM
Help













