473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to make my file a .htm?

Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?
Thanks.
Jun 27 '08 #1
6 1911
David B. scribed:
>Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?
Thanks.
Make sure you have htm files associated with your browser.
--
Ed Jay (remove 'M' to respond by email)
Jun 27 '08 #2
David B. wrote:
Using Win XP SP2

I wrote up a XHTML file
See: http://tekrider.net/html/doctype.php
using notepad. Now I want my browser to open it as a web page but it
only sees it as a .txt file. I tried changing the extension to .htm
but its still a .txt file. What do I do?
What was it prior to ".htm" ?

Post a link/URL to the file.

--
-bts
-Motorcycles defy gravity; cars just suck
Jun 27 '08 #3
In article <l1********************************@4ax.com>,
David B. <ta*********@yahoo.comwrote:
Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?
Thanks.
If you copy and paste this into notepad and save as template.html and
open it from within a browser, what happens?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>template</title>
</head>
<body>
<h1>Main heading</h1>
<h2>Secondary heading</h2>
<p>paragraph</p>
</body>
</html>

--
dorayme
Jun 27 '08 #4
On 24 Apr, 18:18, David B. <tall_wal...@yahoo.comwrote:
Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?
Hack around in Windows Explorer (NOT Internet Explorer) and switch off
the desktop option uder Tools | Folder options | View | Advanced |
Hide extensions for known file types

If you have this option on (by default), Windows assumes that you're
too stupid to understand a file extension, so it hides them from you.
If you enter one (such as .htm) when editing something that Widnows
thinks is already a ".txt" file, then it thinks you're using some sort
of internal part of the basename and not an extension ('cos you're too
stupid to understand those). Windows then makes you a text file with a
htm in it, as the name "example.htm.txt"

Alternatively, when saving files from Windows-OCD tools like NotePad
use the "All file types" option and type the whole name in there,
including the extension.

Best of all, use a real editor. Editors from people who actually use
editors don't do this stuff.
Jun 27 '08 #5
Andy Dingley wrote:
On 24 Apr, 18:18, David B. <tall_wal...@yahoo.comwrote:
>Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?

Hack around in Windows Explorer (NOT Internet Explorer) and switch off
the desktop option uder Tools | Folder options | View | Advanced |
Hide extensions for known file types
Something I advise all Windows users to do, should be off by default.
Since the file extension is *so* important to MS's OS it should never be
hidden and dupe poor newbies in to such trouble with

"readme.txt .exe"

Can add the real *WOW* to Windows...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #6
Andy Dingley <di*****@codesmiths.comwrites:
On 24 Apr, 18:18, David B. <tall_wal...@yahoo.comwrote:
>Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?

Hack around in Windows Explorer (NOT Internet Explorer) and switch off
the desktop option uder Tools | Folder options | View | Advanced |
Hide extensions for known file types
Clicking a checkbox in a config dialog qualifies as "hacking"? Setting the
bar rather low these days, aren't we? Kids today... :-)
If you have this option on (by default), Windows assumes that you're
too stupid to understand a file extension, so it hides them from you.
If you enter one (such as .htm) when editing something that Widnows
thinks is already a ".txt" file, then it thinks you're using some sort
of internal part of the basename and not an extension ('cos you're too
stupid to understand those). Windows then makes you a text file with a
htm in it, as the name "example.htm.txt"
A popular phishing attack is based on that too. The phisher emails the
victim a program named "jennanaked.jpg.exe". The victim, unaware of the
".exe" extension that Windows is so helpfully hiding, clicks on what he
thinks is an image.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
7
by: Lowell Kirsh | last post by:
I have a script which I use to find all duplicates of files within a given directory and all its subdirectories. It seems like it's longer than it needs to be but I can't figure out how to shorten...
6
by: jmborr | last post by:
While running make, I obtain the following error: make: *** No rule to make target `amino_acid_param.h', needed by `pdb2txt_relax.o'. Stop. I'm confused, since header files (*.h) shouldn't...
9
by: Joel Rodrigues | last post by:
Hi, I get the following error when I run make on Mac OS X v 10.1.5 Any ideas ? ---------------------------------------------------------- ar: illegal option -- s usage: ar -d archive file ......
1
by: uto | last post by:
can i make resume web page into word or excel file? resume web page type is table and include photo and etc how can i make this? is there crystalreport to implement this?
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
9
by: xz | last post by:
What sense do h files make in c/cpp? I never thought about this question before. Does the existence of h files make sense at all? Why do we need to declare functions in h files and...
0
by: jairathore | last post by:
Hi to all, I m very much novice the borland c++ envoirment i want to build a application whose code is devloped in borland c++ ,i have make file associated that application.i tried to compile this...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.