#### Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

## Firefox current version will not run my html code located on my PC

• 26 uphendule
• 1 inale nkinga
• 7 views
• Igcine ukuphendulwa ngu

Current version of FF:

I have html code from a previous, old, project that did run on an office intranet that used Firefox as our internet browser. It's totally basic html. I've tried to get the html code to run on my PC on this current FF browser and it just does not, nor are there any error codes. WHY?

My html has exactly the same opening and closing items as you can see in the book on html for "Dummies."

I need to see the code in operation so I can update to a new project I'm starting. What do I do?

If anyone wants to see my code, I'll gladly post it.

Thanks,

Pat

Current version of FF: I have html code from a previous, old, project that did run on an office intranet that used Firefox as our internet browser. It's totally basic html. I've tried to get the html code to run on my PC on this current FF browser and it just does not, nor are there any error codes. WHY? My html has exactly the same opening and closing items as you can see in the book on html for "Dummies." I need to see the code in operation so I can update to a new project I'm starting. What do I do? If anyone wants to see my code, I'll gladly post it. Thanks, Pat

### All Replies (20)

Did you check the Web Console for possible error messages ?

You can enclose the HTML code in PRE tags (<pre> .... </pre>) if you want to post it.

The web console has the following, but they don't apply to my html because I don't have any zoom nor is there any calc going on: "This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. 1298906 Some cookies are misusing the recommended “sameSite“ attribute 7 " I'll try another run and look at the console.

I tried running my code again and nothing happened. I went into the web console and it showed nothing except my code in all green. None of the selection had any remarks or errors shown. I admit I don't know about the web console, I have never noticed it until you mentioned it. I don't know if it existed in the old days when I was writing the html, but the code is so basic I never had any problems other than a forgotten opening or closing item.

I still am not getting my html to run. I tried the File Open File on the Firefox menu and when I clicked open the file name appeared in the url box as this: file:///C:/Users/tpk1/Documents/LabNews/Top_lvl.htm When I hit Enter, nothing happens, nothing on the page, no error messages, BUT, when I opened the Console, I found the following, but I have no idea what it means or what to do about it:

Here is the Console message:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

Here is my code, with the <pre> and </pre> added as you said:

<HTML>
<TITLE>LABNEWS 2004 </TITLE>
<BODY BACKGROUND="..\icon\bg.gif">
<!--BODY BGCOLOR="#fef6d7">
<P>
<center><h2>LABNEWS 2004 </h2></center>
<P>
<center><h3>MEDICAL NEWS FROM AROUND THE WORLD </h3></center>
<p>
<P>
<CENTER><IMG SRC="../icon/usa1c.gif"></CENTER>
<p>
<a href="news.htm">
<img border="0"  align=middle src="..\icon\extra.gif" HEIGHT=50 WIDTH=50>
<B> Health, Medicine and Medical Science News</B> </a>
<P>
<img border="0"  align=middle src="..\icon\FED.gif" HEIGHT=50 WIDTH=50>
<A HREF="http://www.dhs.gov/dhspublic/"><B>Homeland Security site</B> </A>
<P>
<img border="0"  align=middle src="..\icon\logo.gif" HEIGHT=50 WIDTH=50>
<A HREF="http://www.hpa.org.uk/infections/default.htm">
<B>The Health Protection Agency, (England and Wales)</A></B>
<P>
<img border="0"  align=middle src="..\icon\extra.gif" HEIGHT=50 WIDTH=50>
<A HREF="http://omni.ac.uk/browse/mesh/detail/C0034019L0034019.html">
<B> Public Health in Scotland</B></A>
<P>
<A HREF="http://www.worldhealthnews.harvard.edu/">
<img border="0"  align=middle src="..\icon\newnews.jpg" HEIGHT=50 WIDTH=50>
<B>Harvard World Health News</B></A>
<P>
<CENTER><IMG align=top border="0" SRC="..\icon\bar10.GIF"></CENTER>
<P>

<MULTICOL COLS=2 WIDTH=90% GUTTER=10>

<P>
<B>Quality Of Health Care Sites</B></A>
<P>
<a href="Request3.htm"><img  border="0" align=middle src="..\icon\go.gif">
<B>Request!</B>    <B>CDC Links To Research Services</B></a>

<P>
<a href="http://www.aphl.org/">
<img align=middle border="0" src="..\icon\GR_DIAM.gif">
<B>Association of
Public Health Laboratories</B></a>
<P>
<a href="http://www.astho.org/">
<img align=middle border="0" src="..\icon\news.gif">
<P>
<a href="http://www.apha.org">
<img align=middle border="0" src="..\icon\apha.gif">
<B>AMERICAN PUB
HLTH ASSOC</B></a>
<P>

</multicol>

<p>
<CENTER><IMG align=top border="0" SRC="..\icon\bar10.GIF"></CENTER>
<P>

<P>

<center><h3>Connect to Federal News Sources</h3></center>

<MULTICOL COLS=2 WIDTH=90% GUTTER=10>

<a href="http://www.fendonline.com ">
<IMG border="0" align=bottom SRC="..\icon\ball26.GIF">
Federal Employee News Digest</a>
<P>
<a href="http://www.federaltimes.com/">
<img border="0"  align=middle src="..\icon\ball26.GIF">
Federal Times</a>
<P>

</multicol>
<P>
<center><img border="0" src="..\icon\bar10.GIF"></center>
<P>
<CENTER><H3>FEDERAL EMPLOYEE INTEREST SITES</H3></CENTER>
<P>
<MULTICOL COLS=2 WIDTH=100% GUTTER=10>

<a href="http://www.tsp.gov">
<img border="0" align=middle src="..\icon\ball26.GIF">
Federal Thrift Savings Plan (TSP) Web</a>
<P>

<a href="http://www.finance.gsa.gov/csrs/">
<img border="0"  align=middle src="..\icon\ball26.GIF">
Retirement Calculator for CSRS staff </a>
<P>

<A HREF="2004IT.HTM">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2004 Federal IT (GS 2210'S) Updated 3/5/2004 Pay Schedule For Atlanta</B></A><IMG SRC="../icon/NEW.gif" WIDTH=0 HEIGHT=0>
<P>
<A HREF="it2004.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2004 Federal IT (GS 2210'S) Pay Schedule For Atlanta</B></A>
<P>

<A HREF="2004rev.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2004 General Schedule Pay Schedule For Atlanta
(Updated 3/5/2004)</B></A><IMG SRC="../icon/NEW.gif" WIDTH=0 HEIGHT=0>
<P>

<A HREF="atl2004.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2004 Federal Pay Schedule (GS)For Atlanta</B></A>
<P>

<A HREF="it2003.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2003 Federal IT (GS 334'S) Pay Schedule For Atlanta</B></A>
<P>

<A HREF="atl2003.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2003 (REVISED) Federal Pay Schedule (GS)For Atlanta</B></A>
<P>

<A HREF="it2002.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2002 Federal IT (GS 334'S) Pay Schedule For Atlanta</B></A>
<P>

<A HREF="atl2002.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2002 Federal Pay Schedule For Atlanta</B></A>

<P>
<a href="atl21.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2001 Federal Pay Schedule For Atlanta</B></a>
<P>

<a href="itatl21.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2001 Federal IT (GS 334'S) Pay Schedule For Atlanta</B></a>
<P>

<a href="atl20.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
<B>2000 Federal Pay Schedule for Atlanta</B></a>
<P>

<a href="99pay.htm">
<img border="0"  align=middle src="..\icon\ball26.GIF">
1999 Federal Pay Schedule for Atlanta</a>
<P>

<A HREF="98PAY.HTM">
<img border="0"  align=middle src="..\icon\ball26.GIF">
1998 Federal Pay Schedule for Atlanta</a>
<P>

<a href="97PAY.HTM">
<img border="0"  align=middle src="..\icon\ball26.GIF">
1997 Federal Pay Schedule for Atlanta</a>
<P>

</multicol>

<P>
<center><img border="0" src="..\icon\bar10.GIF"></center>

<p>
<center><h3>EMERGING INFECTIOUS DISEASES REPORTING SITES</h3></center>
<P>
<center><A HREF=" http://www.cdc.gov/eid">
<IMG align=top border="0" SRC="..\icon\RD_DIAM.GIF">
<B>CDC's  journal, Emerging Infectious
Diseases (EID), On The WEB</B></A>
<p>
<a href="http://www.promedmail.org:8080/promed/promed.folder.home">
<IMG align=top border="0" SRC="..\icon\CY_DIAM.GIF">
<b>PROMED</b>,
Program for  Monitoring Emerging Diseases,<br>
From The   Federation Of American Scientists</a></center>
<P>

<center><a href="http://www.who.ch/wer/wer_home.htm">
<IMG align=top border="0" SRC="..\icon\RD_DIAM.GIF">
World Health Organization's Weekly<br>
Epidemiological Record:<br></a></center>
<p>
<center><a href="http://www.cdc.gov/epo/mmwr/mmwr.html">
<IMG align=top border="0" SRC="..\icon\BL_DIAM.GIF">
Centers for Disease Control's Morbidity and<br>
Mortality Weekly Report:</a></center>

<P>
<CENTER><img border="0" src="..\icon\bar10.gif"></CENTER><br>

<P>

<center>
<img border="0" src="..\icon\flow04.gif">
<script>
var now = new Date(document.lastModified)  // a built-in javascript object
var month = now.getMonth() + 1             // month, 0 base, add one
var year = now.getYear()            //year, add century if desired
var date = now.getDate()
document.write("This document was last modified on " + month + "/" + date    + "/" + 2004 + ".")
</script><img border="0" src="..\icon\flow04.gif">

<P>
<CENTER><img border="0" src="..\icon\bar10.gif"> </CENTER>
<P>

<p>
<center><img border="0" src="..\icon\bulb.gif"><b><i>
<font size=-1>LabNews IntraNet HomePage design, creation, programming and
maintenance by<br> T. Patrick Kelly, LL.B., LL.M., Computer Systems Analyst
and WebMaster.</b></i></font></center>
<P>
</BODY>
</HTML>

Okulungisiwe ngu cor-el

This time I found and picked my code up in the Firefox File Open File selection which put my file name in the url box. I hit Enter and nothing showed on screen. I opened the Console that you told me about and found this message: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol."

I have no idea what this means nor what to do about it. I've been away from html programming for about 23 years which is when I wrote this code.

I'll post my code below here with the
as you stated:
<title>LABNEWS 2004 </title>



I'll call the file page.html. Firefox should treat either .htm or .html files as HTML.

Is page.html complete in itself, it doesn't rely on any external files at all?

If you open page.html in Firefox, what do you see -- blank page? some content (what's wrong with the content)?

If you view the source of that tab (Ctrl+u), does it look like the right HTML? Sometimes Firefox will add tags or color tags red if there are issues with your code. That may or may not be useful.

You mentioned running code. What do you mean beyond loading the page? Is this a problem with JavaScript code not executing as expected in the page?

I'll call the file page.html. Firefox should treat either .htm or .html files as HTML. = It's .htm

Is page.html complete in itself, it doesn't rely on any external files at all? = Yes complete, no other files

If you open page.html in Firefox, what do you see -- blank page? some content (what's wrong with the content)? = Just a blank page

If you view the source of that tab (Ctrl+u), does it look like the right HTML? Sometimes Firefox will add tags or color tags red if there are issues with your code. That may or may not be useful. = It's my code and is all red with just a blue colored ""..\icon\bg.gif"" of the line = "<BODY BACKGROUND="..\icon\bg.gif">"

You mentioned running code. What do you mean beyond loading the page? Is this a problem with JavaScript code not executing as expected in the page? = NO, just the blank page and that error message in Console. I do not have any javascript anywhere.

The Console show this message after I try to run my code in Firefox: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." = I have no idea what this means nor what to do about it.

Pat

When you open a html file locally then you can't go back beyond the root location where the main html file resides for security reasons, so a file path like "..\icon\bg.gif" with backslashes won't work won't work and you need to use "/icon/bg.gif" with forward slashes and move the files to a sub folder in the HTML file root location.

<body style="background: url(/icon/bg.gif)">   </body>

OK,

I will try this.

Thanks

Pat

I've made the change plus another that the "Inspector" shows red high light on, but not "Console".

Here are the new html code:

<!DOCTYPE HTML>
<html lang="en">
<meta charset="utf-8"/>
<TITLE>LABNEWS 2004 </TITLE>
<BODY style="BACKGROUND: url (/icon/bg.gif"> </body>
<!--BODY BGCOLOR="#fef6d7">


The "Inspector has in red these two words: lang in this: <html lang="en"> AND style in this: <BODY style="BACKGROUND: url (/icon/bg.gif"> </body>

Since I have the </body> up here with BODY style, I did a </body> at the very bottom of the code like this: <!/BODY> </HTML>

It is NOT complained about in the "Inspector"

What IS WRONG?

Thanks for help Pat

I've looked up both in the HTML Language Code Ref and both are correct in that guide. When I run the code in Firefox, it's still the same, nothing shows.

Okulungisiwe ngu cor-el

You are missing the closing ')' for the url() property value.

• <BODY style="BACKGROUND: url (/icon/bg.gif"> </body>

Should be: <BODY style="background: url(/icon/bg.gif)"> </body>

Hi Patrick, since you said you just need to see the old page, I have a suggestion:

Try opening this ancient page in Internet Explorer. On Windows 10, it's a bit hidden, but if you type iex in the system search box (usually on the Taskbar) Windows should show its familiar icon on the Start menu.

You'll want to start your new page from scratch anyway, so it probably doesn't make sense to spend more time trying to make the old page viewable in modern browsers.

Hi jscher

I tried both old html code and the new html and the old IE did not run either. When I had Windows XP on my last PC, a Dell 14 years old, it ran old html it just fine.

I wanted to see the old code so i could, quick like a bunny, so to speak, just modify it, cut out the stuff not needed and see what I have then as a basic start to the new presentation I'm hoping to have out.

I hope I'm not beating this to death, but I've not written any html in probably 25 years when I wrote this old code.

Pat

All your code is commented, beginning on line 6.

cor-el

Nope, The Console doesn't show anything. The Inspector is still showing red on the word "lang" in and on the word style in this: I've tried to run this in this current FF version and in the old Internet explored as jscher suggested with the same no result. Pat

Hi TyDraniu

"All your code is commented, beginning on line 6." I don't see it as in my code like this:

<meta charset="utf-8"> <title>LABNEWS 2004 </title>

Everything after this code is a comment:
<!--BODY BGCOLOR="#fef6d7">

TyDraniu

A huge THANK YOU!

I took that entire code piece out and IT WORKED!! I actually now can see the code in operation and in the current FF to boot.

Thanks to all who helped.

Pat

Note that the proper way to use a comment is <!-- comment -->

cor-el

Thanks and noted.

On another issue, in the old code I had background and the numeric for the color that does not work so I cut it out. I've been all through w3schools.com "THE WORLD'S LARGEST WEB DEVELOPER SITE" https://www.w3schools.com/ looking for the proper code to make a background for the entire page(s) and all I've found is:

 <html>
<style>
h1 {color:red;}
p {color:blue;}
</style>
<body>

<p>A paragraph.</p>

</body>
</html>


Which does a heading and paragraph.

We've gone over this: <BODY style="background: url(/icon/bg.gif)"> </body> but it is not being displayed but the bg.gif is in the sub-directory /icon.

As an alternative, I wanted to color the entire page and <style> just doesn't do it. Has this been killed off in these later versions of html?

Thanks,

Pat

Okulungisiwe ngu cor-el