Skip to content
TheFilesGuy
en
Menu

Web & code · .html

What Is an HTML File?

A .html file is a web page file.

Extension
.html, .htm
Full name
HyperText Markup Language
Type
Web & code
MIME type
text/html
Developed by
Tim Berners-Lee (1991), now WHATWG

Free HTML Tools

These run in your browser. Your HTML files are never uploaded.

About HTML Files

HTML is the language web pages are written in. An HTML file contains text and tags that describe the structure of a page, such as headings, paragraphs, links, images and forms. Browsers read it and display the page, usually styled with CSS and made interactive with JavaScript. Saved web pages, email templates and offline documentation are often HTML files. Opening an HTML file from an untrusted source is like visiting an unknown website.

How to Open an HTML File

Any device
Double-click to open it in your web browser.
Any device
Open it in a text editor or VS Code to see or edit the code.

HTML File Questions

How do I edit an HTML file?

Open it in a text editor such as VS Code or Notepad, change it, save, and reload it in the browser.

What's the difference between .htm and .html?

None. Old systems needed three-letter extensions, so .htm was used.

See all file formats