Get this book -> Problems on Array: For Interviews and Competitive Programming
There are 4 different types of HTML file extensions and the extension denote a specific feature enabled in the HTML web page. In this article, we have explored all different types of HTML file extensions in depth.
There are 4 types of HTML files:
- HTML (.html)
- SHTML (.shtml)
- Dynamic HTML (.dhtml)
- Extensible HTML (.xhtml)
We will go over each type of HTML file extension now.
This is the basic version of HTML (HyperText Markup Language).
The file extension of this type is .html.
SHTML is an extension of HTML with Server Side Include (SSI) enabled. SSI enables the HTML page to:
- Execute Server side scripts
- Load common include files faster and hence, optimize HTML code.
The file extension of this type is .shtml.
Dynamic HTML (.dhtml)
Dynamic HTML is an extension of HTML that supports dynamic features such as animation, dynamic menus and much more.
The file extension of this type is .dhtml.
Extensible HTML (.xhtml)
Extensible HTML is a variant of HTML that is strict in its rules and has a more standarized format.
The file extension of this type is .xhtml.
Following table summarizes the different HTML files:
|Different HTML file|
|HTML file||File extension||Special feature|
|SHTML||.shtml||Server Side Include (SSI)|
|DHTML||.dhtml||Animation, Dynamic menu|
|XHTML||.xhtml||Strict and standardized|
With this article at OpenGenus, you must have the complete idea of different HTML files.