PDA

View Full Version : [Safari] HTML Problem



Rockstar
14-12-2007, 11:18 PM
Ok Ive just coded a basic layout and got my macbook today so did it on that all went well till I opened it and it was all displayed as text and "YES" I did save the index file as index.html

Ini
14-12-2007, 11:43 PM
Maybe post the code..

adamFTW
14-12-2007, 11:46 PM
Posting the code would help..

Ini
14-12-2007, 11:48 PM
Posting the code would help..
As i just said..

adamFTW
14-12-2007, 11:55 PM
As i just said..

Meh, Kosmick, try the following:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PAGE TITLE</title>
ANY CSS GOES HERE
</head>

<body>
ALL YOUR HTML GOES HERE
</body>
</html>


Hope it helps.

Rockstar
15-12-2007, 08:33 AM
Meh, Kosmick, try the following:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PAGE TITLE</title>
ANY CSS GOES HERE
</head>

<body>
ALL YOUR HTML GOES HERE
</body>
</html>


Hope it helps.
I tryed it but still didn't work

lolwut
15-12-2007, 09:10 AM
Post the code?
It's really hard to do something without us knowing what we're doing.

Pazza
15-12-2007, 09:44 AM
He has posted it.

Nothing looks wrong with it ...

Recursion
15-12-2007, 09:58 AM
Are you sure your not saving it as index.php/html.txt, I know on Windows I always turn off hiding extensions for this reason.

Rockstar
15-12-2007, 10:38 AM
Are you sure your not saving it as index.php/html.txt, I know on Windows I always turn off hiding extensions for this reason.
Yes Im saving it as test.html and in the format bit you have like Rich Text Format is this correct

Decode
15-12-2007, 10:40 AM
I tryed it but still didn't work
Use notepad to edit your html if your allready not. If that doesnt work try viewing the file on IE or Firefox.

Recursion
15-12-2007, 10:48 AM
Yes Im saving it as test.html and in the format bit you have like Rich Text Format is this correct

Theres your problem, put the format as ALL FILES

Pazza
15-12-2007, 10:49 AM
Lol

If you saved as test.html.txt

:P

Recursion
15-12-2007, 10:49 AM
by the looks of it, it was saved as

index.html.rtf :P

Pazza
15-12-2007, 10:51 AM
aaah

I was wrong :(

Download dreamweaver free trial and crack it?

Rockstar
15-12-2007, 11:41 AM
Thats the problem You can't save it as all files


*EDIT* I seems you cannot use Text Editors on Macs you have to acual ge a HTML program so YEH thanks everyone

Want to hide these adverts? Register an account for free!