XHT file extension, also known as XHTML (eXtensible HyperText Markup Language) is a type of document file that is structured like an XML document and includes data related to web pages. These files are universally accepted across any platform which supports HTML. As a standardized method, it is part of the XML standard, allowing you to create your own customizable tags.
There are a variety of formats and ways to open and use XHT files. Notably they are used when designing web pages to ensure that the website can be viewed the same way across all browsers.
The HTML Application
An HTML, or HyperText Markup Language, is the most widely used language for creating web pages. This application deals with the use of tags to create elements within a web page. The XHT extension applies the rules of XML, evident in its ability to define its tags, to HTML. This is especially practical in handling data items and presenting them on the internet in multiple ways across various applications.
XML Based HTML
Another usage pertains to XML-based HTML. XML refers to EXtensible Markup Language, a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. The World Wide Web Consortium's XML 1.0 Specification of 1998 and several other related specifications�all of them free open standards�define XML. You can learn more about XML from here.
Role in Web Browsers
XHT files also play an important role in web browsers. Mozilla Firefox, Google Chrome and Apple Safari can all open and display XHT files or use them as web pages. The primary difference between them and HTML files is their compliance with stricter XML rules.