/    Sign up×
Community /Pin to ProfileBookmark

Hi.
I have just about finished my website now (thanks for all the help!). Is there something I can rename the files to? instead of something.html/htm to be something more ‘impressive’, it seems all websites now dont use those extenions? ?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@spufiMay 05.2003 — .html is the commonly used extension for HTML pages. When people use other extensions it's because thay are also using some other language within their page. When you see a .php extension it's because the file has PHP in it. There are a bunch of other languages and hence a bunch of other extensions. My site actually uses one file with a .css extension for my external CSS file. and I have a .php file for the page that processes my e-mail form. The rest of my pages have a .html extension.
Copy linkTweet thisAlerts:
@DanUKauthorMay 05.2003 — ok thanks.

So really, ( I was just viewing some sites with .asp and they look like just html ) I could just rename my .html files to .asp and no one would be any hte wiser? I know its just an aesthetic thing : thanks.
Copy linkTweet thisAlerts:
@DanUKauthorMay 05.2003 — I guess what I really mean, I have javascript in all my pages, so i could rename them to .jsp (nice aesthetic) and it would be correct/ok?
Copy linkTweet thisAlerts:
@spufiMay 05.2003 — No, because .jsp is used for Java Server Page(s). I forgot about mixing in JavaScript into a HTML page. If you create a page that only has JavaScript on it, you can save it with a .js extension. You could then link to that file in your HTML page and you would thus have at least some of your JavaScript linked externally. This means you could change your JavaScript file and have it affect any of the pages it was externally linked too. let's say you want to display the date your page was last updated. All you would do is write the JavaScript for it and save it in a file with a .js extension. After that, link to it on your pages and it will tell the user when the page they are viewing was last changed.
Copy linkTweet thisAlerts:
@spufiMay 05.2003 — [i]Originally posted by skydan [/i]

[B]ok thanks.

So really, ( I was just viewing some sites with .asp and they look like just html ) I could just rename my .html files to .asp and no one would be any hte wiser? I know its just an aesthetic thing : thanks. [/B]
[/QUOTE]


Let me just say that some languages covert their output into HTML code when you look at it. Let's say somebody adds some PHP code to say "Hi" in bold. What you see when doing a view sorce is <b>Hi</b>, but this is not what the actual code is because it is what was kicked back fron the server.
Copy linkTweet thisAlerts:
@khakiMay 05.2003 — Hi Skydan...

Be carefull about extentions.

A page named page.asp (or even page.php) may [I]look[/I] like an html or htm page...

but that is because it is written ON the server and is then sent to the browser as a finished product.

And while an html page [I]can[/I] be named page.asp...

the server must support ASP...

and then it is forced to do the work that the browser could simply do for itself... so it is bad practice to do such a thing.

Normally an ASP page contains VBScript, and is required to be run on the server to take adavantage of the server's technology to process the page (which will look the same on all browsers when finished).

JSP pages are similar ro ASP pages, except that they are written in Java.

Another extension that you may see is SHTML...

which indicates that the page contains Server Side Includes (SSI).

The server must support SSI in order for an SHTML page to be processed by the server, and then be sent to the browser.

So ultimately, a page should posess the extention that properly identifies the language and/or technology that it contains.

So unless you have a page that contains a server-side language...

HTML or HTM should be used (note: Javascript is a client-side language, and it is often part of HTML and/or HTM pages. The inclusion of Javascript - or even a JS page file link - does not necessitate an extention change. HTML and/or HTM is proper).

so...

don't get hung-up on "extension status". Normally (and ultimately) the extention fits the needs of the page. Altering it for other reasons is only asking for trouble.

Did I answer/expalin that well enough?

Unfortunately, I know what I mean...

but I'm not sure that I have explained it well enough for someone who is not so sure ?

Let me know if you need further clarification...

and I'll try to do better :rolleyes:

? k.omg (often mis-understood girl)

lol

[I]EDIT: Oh... I took so long to write my novel that Spufi (hi Spuf!!!) already responded :rolleyes: .

I really need to type faster (or cut-down on the blah-blah-blah. LOL!!!)[/I]
Copy linkTweet thisAlerts:
@DanUKauthorMay 05.2003 — thanks that helped ?
×

Success!

Help @DanUK spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...