Results 1 to 4 of 4

Thread: mozilla displays source

  1. #1
    Join Date
    Aug 2003

    mozilla displays source

    Why would mozilla display my source code instead of the page? Does it have to do with the shtml or the CSS?


  2. #2
    Join Date
    Feb 2003
    Michigan, USA
    I saved your code with the filename index2.html - dropping the s - and Moz loaded the page fine (minus the graphics and CSS of course, since I saved the HTML file on my local machine).

    If you're page is just straight HTML, javascript and CSS, then there is no need for any other file extension than .html or .htm.

    Any reason for using .shtml?

  3. #3
    Join Date
    Aug 2003
    the actual source has a virtual include - hence the shtml. I am learning that this could be a server issue. The server included the code and then sent the "new" source to the browser as text???

    Has any one else seen this before?

  4. #4
    Join Date
    Nov 2002
    Nashua, NH
    It has nothing to do with the extension but the MIME type the server uses for the page. Yours is served as text/plain which is what Moz shows.

    Working web site is not the one that looks the same in a few graphical browsers, but the one that adequately delivers its content to any device accessing it.

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

Recent Articles