Welcome to the MacNN Forums.

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.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > I Know I'll Feel REALLY Stupid When I Get This Figured Out But...

I Know I'll Feel REALLY Stupid When I Get This Figured Out But...
Thread Tools
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Aug 14, 2007, 01:42 PM
 
Here's some simple HTML code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>My first HTML page</title> </head> <body> <p>Hello world.</p> </body> </html>
I have this very code in a text document saved with as an HTML document, Why won't Safari or Firefox open it as the idiot-level page it's supposed to be?
Glenn -----
OTR/L, MOT, Tx
     
Mac Enthusiast
Join Date: Feb 2007
Location: UK
Status: Offline
Reply With Quote
Aug 14, 2007, 02:37 PM
 
Are you sure youve saved it as a .htm or .html lol.

Also, what is showing up instead? Nothing?
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Aug 14, 2007, 02:44 PM
 
If I had to guess, you wrote it in TextEdit and chose Save as HTML which converted your text to the equivalent HTML required to display it exactly as it showed on your screen. Instead, try going to the Format menu and "Make Plain Text" and then saving again with a .html extension. Also, if you're going to be doing much HTML editing you might want to look into a more fitting editor such as the free TextWrangler.

If it isn't showing up at all, I am not sure what the problem could be. You could link an uploaded copy of the file to us.
Travis Sanderson
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Aug 14, 2007, 03:31 PM
 
Originally Posted by redJag View Post
If I had to guess, you wrote it in TextEdit and chose Save as HTML...
The WINNER!!!

Somehow TextEdit's "save as HTML" isn't as intuitive as I've come to expect Apple software to be. Thanks for the tip!
Glenn -----
OTR/L, MOT, Tx
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 14, 2007, 03:49 PM
 
It's intuitive if you think of it as a rich text format like Word or RTF — that is, I think, for the average user. It's less intuitive if you're actually a Web developer.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:31 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2