View Full Version : How to Rename an HTML Document?
Star-Com
11-30-2004, 07:40 PM
When saving a web page, say, in My Documents, the procedure is :
File-Save As..., File name, Save as type (htm,html) etc.
What appears in My Documents then, is a file (an HTML Document which opens with Internet Explorer) and a folder that comes along with it and has the same Name.
Q. How can i Rename the file and still belong to its corresponding folder, without losing any data from the HTML Document (file), like pictures or maybe animations?
HyperTF
11-30-2004, 09:29 PM
I think it is in automatic code that your html editor is generating that the links are made as that folder is for supporting files (pics etc), you might have to open up your html editor again and go through the same procedure (Save as) and save it under a new file name.... probably what you will find though it will create a new accompany folder with the new name. Hope this helps... oh by the way, which html editor/web page creator are you using?
kram 2.0
11-30-2004, 09:36 PM
You won't loose any data unless the user specifically presses the delete button (or some unusual circumstance). The thing you should be concerned about are broken links. Every HTML file has a source code to which a specific file name within a specific directory, if any, is called or defined.
So this is what you do. Check the name of the old file. Then, rename it. Then go into the HTML document which calls for the documents inside the folder. Press Control+H, presuming you are doing this all in a text editor or some standard program, and type in the old file name as the one you find, and replace with the new file name. That should do it.
kram
HyperTF
11-30-2004, 09:58 PM
Yeah, that is the better way, i am too used to taking short cuts... must get out of that habit!
enhanced08
11-30-2004, 10:18 PM
when i do any HTML i just simply use notepad. its basic, gets the job done and its free!
just remember when you save it to put .htm or .html at the end of the file!
Star-Com
11-30-2004, 10:31 PM
when i do any HTML i just simply use notepad. its basic, gets the job done and its free!
just remember when you save it to put .htm or .html at the end of the file!
How do you mean?
To open the HTML Document using Notepad and then Save As... ?
enhanced08
11-30-2004, 10:35 PM
no, well that might work, but what i meant was open a new document in notepad and type the HTML file there. then hit "save as" and type a name followed by .htm or .html
for example index.htm or index.html
kram 2.0
11-30-2004, 10:38 PM
Notepad is a universal text writer. It can write in many extensions - like .txt, .htm, .html., .js, etc. Be sure to specify ".html" at the end of the file - .html is more standard than .htm IMO.
kram
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.