.HTML File Extension
Hypertext Markup Language File
Learn about .HTML files and view a list of programs that open them.
What is a .html file?
Learn about .HTML files and view a list of programs that open them.
Properties
More Information
An HTML 4 document is composed of three parts:
a line containing HTML version informationa declarative header sectiona body, which contains the document’s actual content. The body may be implemented by the BODY element or the FRAMESET element to contain the body in frames
Each section can be lead or followed by white spaces, newlines, tabs and comments. An example of a simple HTML document is as shown below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <TITLE>Understanding HTML File Format</TITLE> </HEAD> <BODY> <P>Hello World! </BODY> </HTML>HTML was introduced in 1991 by Tim Berners-Lee and other CERN engineers as a way for web browsers to interpret and display webpages. Since its release, it has become a standard in web development and has gone through multiple revisions, which include HTML 2 (1995), HTML 3 (January 1997), HTML 4 (December 1997), and HTML 5 (2014).
The Web Hypertext Application Technology Working Group (WHATWG) develops and advances HTML. The group was founded in 2004 and consists of major browser developers, including Google, Microsoft, Apple, and Mozilla.
The markup language features HTML elements that make up the structure of webpages. Typically, each element includes an opening tag enclosed in angle brackets (<tag>) and a closing tag enclosed in angle brackets but with a forward slash preceding the tag (</tag>).
Some examples of basic elements include:
<head> - Head tag used to contain metadata about a webpage <body> - Body tag that defines the body of a webpage <h1> - Text header tag used to create a text title in a webpage <p> - Paragraph tag used to define a paragraph in a webpage<img> - Image tag used to embed an image in a webpage
<ul> - Unordered list to create a bulleted list in a webpage <div> - Divider tag used to create a section in a webpageOver time, other web technologies, such as Cascading Style Sheets (CSS) and JavaScript, have been introduced to enhance webpages. You will most likely find CSS or JavaScript code or references to .CSS or .JS files in modern HTML webpages.
Web developers often create and edit HTML files, then upload them to web servers that web browsers parse when a user visits webpages. If you are an average Internet user, you most likely will not see the HTML source code since your web browser parses it in the background.
However, you can still view the HTML of a webpage with a web browser by following these steps specific to the browser:
Google Chrome (Windows) - Select More tools → Developer tools
Google Chrome (Mac) - Select View → Developer → View Source
Mozilla Firefox - Select Web Developer → Page Source
Microsoft Edge - Select More tools → Developer tools
Apple Safari - Select Develop → Show Page Source
NOTE: Most pages within static websites have an .html extension, while pages within dynamic websites may have a .php or .asp extension.
Technical Details
An HTML 4 document is composed of three parts:
a line containing HTML version informationa declarative header sectiona body, which contains the document’s actual content. The body may be implemented by the BODY element or the FRAMESET element to contain the body in frames
Each section can be lead or followed by white spaces, newlines, tabs and comments. An example of a simple HTML document is as shown below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <TITLE>Understanding HTML File Format</TITLE> </HEAD> <BODY> <P>Hello World! </BODY> </HTML>HTML was introduced in 1991 by Tim Berners-Lee and other CERN engineers as a way for web browsers to interpret and display webpages. Since its release, it has become a standard in web development and has gone through multiple revisions, which include HTML 2 (1995), HTML 3 (January 1997), HTML 4 (December 1997), and HTML 5 (2014).
The Web Hypertext Application Technology Working Group (WHATWG) develops and advances HTML. The group was founded in 2004 and consists of major browser developers, including Google, Microsoft, Apple, and Mozilla.
The markup language features HTML elements that make up the structure of webpages. Typically, each element includes an opening tag enclosed in angle brackets (<tag>) and a closing tag enclosed in angle brackets but with a forward slash preceding the tag (</tag>).
Some examples of basic elements include:
<head> - Head tag used to contain metadata about a webpage <body> - Body tag that defines the body of a webpage <h1> - Text header tag used to create a text title in a webpage <p> - Paragraph tag used to define a paragraph in a webpage<img> - Image tag used to embed an image in a webpage
<ul> - Unordered list to create a bulleted list in a webpage <div> - Divider tag used to create a section in a webpageOver time, other web technologies, such as Cascading Style Sheets (CSS) and JavaScript, have been introduced to enhance webpages. You will most likely find CSS or JavaScript code or references to .CSS or .JS files in modern HTML webpages.
Web developers often create and edit HTML files, then upload them to web servers that web browsers parse when a user visits webpages. If you are an average Internet user, you most likely will not see the HTML source code since your web browser parses it in the background.
However, you can still view the HTML of a webpage with a web browser by following these steps specific to the browser:
Google Chrome (Windows) - Select More tools → Developer tools
Google Chrome (Mac) - Select View → Developer → View Source
Mozilla Firefox - Select Web Developer → Page Source
Microsoft Edge - Select More tools → Developer tools
Apple Safari - Select Develop → Show Page Source
NOTE: Most pages within static websites have an .html extension, while pages within dynamic websites may have a .php or .asp extension.
How to open .html files
- You can open and edit HTML files with various source code editors and web development applications. Microsoft Visual Studio Code (multiplatform) is a helpful source code editor and Adobe Dreamweaver (multiplatform) is a popular web development application.
- Since HTML language is saved in plain text, you can also open and edit HTML files with a basic text editor, such as Microsoft Notepad (Windows) or Apple TextEdit (Mac). However, these text editors do not come with features included with source code editors and web development apps that make it easier for developers to code.
- You can preview an HTML webpage by opening it with a web browser, such as Google Chrome (multiplatform), Microsoft Edge (multiplatform), Mozilla Firefox (multiplatform), or Apple Safari (Mac and iOS).
Programs that open .html files:
Quick Facts
- File Extension
- .html
- Developer
- WHATWG
- File Type
- Hypertext Markup Language File
- Last Updated
- 2025-11-02T02:43:26.397Z