I have typed my entire program in notepad the following is the coding :
document.write("The Addition of 2 numbers is : ");
Now with what extension should I save the above file?
If I save the above file with .js extension I am getting a dialog box stating that the error : File is undefined.
But when the above file is saved with the .html extension it is working very well.
So can anybody tell me whether saving it withthe extension .html is correct or not?
Please help me.
Thanks in advance!!
With .html or .htm
Use this basic template:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
At least 98% of internet users' DNA is identical to that of chimpanzees
HTML is correct.
Your replies have clarified my doubts.
Thanks all for your prompt reply..
Thanks a lot..
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)