Results 1 to 3 of 3

Thread: why is my site showing code instead of the actual page?

  1. #1
    Join Date
    Oct 2009

    why is my site showing code instead of the actual page?

    I have a published test site with a problem. When viewed with Firefox or Safari all you see is the underlying code. Viewed with IE 6 it looks fine. I did a W3C markup validation test and it tells me I'm using the content type "text/plain." However, my code says "text/html."

    Any suggestions? Could this be related to why the "inc" files aren't appearing? Here's the header code.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <meta name="description" content="Paxus">
    <meta name="keywords" content="Paxus">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <!--link to external style sheet-->
    <link type="text/css" rel="stylesheet" href="css/style.css">
    <!--link to external script page-->
    <script language="javascript" type="text/javascript" src="js_inc/script.js"></script>
    <link rel="shortcut icon" href="favicon.ico">

  2. #2
    Join Date
    Feb 2008
    NW Washington State
    Are you saying that this page uses "include"? Are you saving the page as .php or .html?

  3. #3
    Join Date
    Oct 2009
    Thanks. I left out an important bit of information. These are .asp pages.

Thread Information

Users Browsing this Thread

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

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