Chapter 3: List all HTML common file extensions of web pages

We have learned how a simple web page can build. Now in this section we will learn what files extensions in a web page are. Most of the web pages runs on UNIX web server like Marcs, which do not require file extension, only filenames are enough for disguising between the files. File extension is key to recognize which of file and format running in that file. How will the server uses and access it.

List of HTML extensions

.html / .htm

HTML and HTM both are same thing both referred as hypertext markup language and same file type. The only difference in these two is that the Windows 3 X and DOS computers refer three-character suffix by that time. Now the servers accept both the files extension as it. It is up to user that which extension he wants to used. .htm files serves the same purpose to the server as .html does. Example of a web with htm and html extension is given below:


When the HTML is dynamically created that has other file extensions depending on the server type forms another scripting language called PHP called Hypertext Preprocessor. It is and open source, server-scripting language. It is very popular now a day because it provide a facility of interactive web page development with dynamic content that interact with database. A “.php” file is usually server-side script , which means it has to be placed on the server with PHP installed on it so others can access the web page, or other content scripted in PHP (for example PDF print). However, it may also act as HTML page with extra PHP code. Example of a web with php extension is given below:

.aspx / .asp

ASPX stands for Active Server Page extended / ASP stands for Active Server Pages.The file extension aspx is associated with the Microsoft development technology called ASP.NET. it’s a free technology that user to create a small website up to a large inventiveness websites. Internet servers generate these pages. The ASP.NET code is compiled and interpreted by the server and then sent to a user web browser and and displayed as a web page. ASP.NET pages are the main building block for web application development. The Web forms are contained in files with an .aspx extension. These files typically contain static (X) HTML markup, as well as markup defining server-side Web Controls and User Controls where the developers place all the required static and dynamic content for the web page. ASPX script files can be written in Microsoft Visual Studio, WebMatrix or other development tools and web pages, that are written in ASP.NET and using ASP.NET, can be viewed in any Internet browser such as Internet Explorer, Firefox, Opera, Chrome or Safari. Example of a web with aspx extension is given below:

The asp file extension is associated with Microsoft Active Server Page source code script file. The .asp files are used to create dynamically generated websites and other webpage content. The ASP code is inserted into static HTML pages with < %%> tags by default, although these tags can be changed to anything you would like. Therefore, like, if you were a PHP programmer forced by his workplace to use ASP, you could change those percentage signs to question marks. The ASP is Microsoft's proprietary answer to php server side scripting language or Cold Fusion. The new version of ASP and not backward compatible is Technically it is not a scripting language it’s a object modelling language on server side.


JSP stands for Java Server Page. HTML pages can be run through “.jsp” extensions. We can run any html pages using jsp extension without any changes in the html code of the page. For example if you have any html page with extension of .html, rename the extension to .jsp and run the page, but the page take some time to load only at the first time and next time it will load fast.

When jsp file run at the 1st time, the page will be compiled and loaded. After the 1st load if you run the page again and the page load fast. If you do any changes in the jsp page, the jsp will compile the page again and load the page. JSP extention needed only if we are writing the dynamic HTML page else we can use .html or .htm extension.


Google Matched Content...

Subscribe Here

Subscribe to updates for useful tips and resources.