www.webdeveloper.com
Results 1 to 8 of 8

Thread: Browser Preview Problem

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    5

    Browser Preview Problem

    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.

  2. #2
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    do you have ALL the minimum necessary tags in place??
    HTML Code:
    <!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>

  3. #3
    Join Date
    Nov 2009
    Posts
    5

    Browser Preview Problem

    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.

  4. #4
    Join Date
    Apr 2006
    Location
    Houston
    Posts
    1,374
    Copy then Paste your code so we can see it

  5. #5
    Join Date
    Nov 2009
    Posts
    5

    Browser Preview Problem

    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>

  6. #6
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    I have no problems... when adding doctype and character set it will even validate.
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    HTML Code:
    <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).

  7. #7
    Join Date
    Dec 2008
    Posts
    488
    Your problem is that you're probably saving in richtext fromat. Make sure you save in ASCII or ANSI unicode or UTF-8

  8. #8
    Join Date
    Dec 2008
    Posts
    488
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles