Click to See Complete Forum and Search --> : Browser Preview Problem


grisaille
11-12-2009, 11:03 PM
I'm a complete newbie at designing websites. But, I took a crack at writing up a practice page in TextEdit. I saved it as .html, and I made sure that both the top and bottom html tags were in place. But when I try loading it in *both* Firefox and Safari, all I see is code. Neither browser is reading the code properly to display the actual page. I assume something somewhere is set wrong or not checked or checked when it shouldn't be -- but I can't figure out what. (I use Mac OS X 10.4.11.)

Any thoughts?

Thanks. :)

opifex
11-13-2009, 02:07 AM
do you have ALL the minimum necessary tags in place??

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>Page Title</title>
</head>
<body>
this your content.... with all the "code" might need to have
</body>
</html>

grisaille
11-13-2009, 12:04 PM
opifex,

"do you have ALL the minimum necessary tags in place??"

Yes. I sent the .html document to two friends, who were able to open it just fine in their browsers.

slaughters
11-13-2009, 01:37 PM
Copy then Paste your code so we can see it

grisaille
11-14-2009, 12:14 AM
Here you go. :) And thanks. :)

____

<html>
<head>
<title>
Eternal Haunted Summer: Pagan Songs and Tales
</title>
</head>
<body style="margin: 0px; padding: 0px">

<table style="height: 100%;
width: 100%;
border-spacing: 0px"
cellspacing="0">
<tr>
<td style="background-color: 556B2F;
height: 200px;
vertical-align: top"
colspan="3">
[header text and images and links]
</td>
</tr>

<tr>
<td style="background color: FFEBCD;
width: 100px;
vertical-align: top">
[left column news and stuff]
</td>
<td style="background-color: 556B2F;
width: 200px;
vertical-align: top">

<p>
Welcome to the pre-inaugural issue of <b>Eternal Haunted Summer</b>, an ezine dedicated to Pagan poetry, short fiction and reviews. So far as we know, Eternal Haunted Summer is the only ezine of its kind: one which gives voice to modern devotion to the many Gods and Goddesses of our ancestors. Poems and stories celebrating the Deities and heroes of the Celts, Norse, Germans, Romans, Etruscans, Greeks, Phoenicians, Canaanites, Sumerians, Egyptians and many, many, many others are all welcome. If you have been inspired to write a poem honoring Apollo or Brigid or Enki; or a short story about Inanna or El or Jove; or if you have written a review about a book or journal with a Pagan focus, please consider submitting it here.
</p>
<p>
Our first official issue will go live on the <b>Winter Solstice 2009</b>, with quarterly updates on each subsequent Equinox and Solstice. Until then, we leave you with the poem which inspired the creation of this ezine.
</p>
<p>
I remember an age<br>
When the forests were still haunted by holiness<br>
When dryads of mossy hair<br>
barky skin<br>
eyes of tree-shadowed pools<br>
Ran wild<br>
Knit a dance with goat-eyed Pan<br>
When Dionysus offered wine of joy and sadness<br>
to vine-mad maenads<br>
And Artemis braided blood-stained lilies<br>
through her night silk hair<br>
I remember an age<br>
Holy<br>
Haunted<br>
Eternal Summer<br>
</p>
<p>
(after Milton)
</p>
</td>
</tr>
</table>

</body>
</html>

opifex
11-14-2009, 01:04 AM
I have no problems... when adding doctype and character set it will even validate.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >

DOCTYPE is required and defining the character set is a good thing to do (apart from generation a warning).

jamesbcox1980
11-17-2009, 12:36 AM
Your problem is that you're probably saving in richtext fromat. Make sure you save in ASCII or ANSI unicode or UTF-8

jamesbcox1980
11-17-2009, 12:38 AM
DOCTYPE is required and defining the character set is a good thing to do (apart from generation a warning).

DTD is required for validation and for generating proper code, but it is not required by the browser to view. The page may not look right, but you won't just see code, that's for sure.