HTML (HyperText Markup Language)
The language that structures every page on the web, turning plain text into content browsers can read and display.
| Full name | HyperText Markup Language |
| Extension | .html |
| MIME type | text/html |
| Developer | Tim Berners-Lee (invented); now maintained by WHATWG |
| Released | 1991 (first described); 1993 (HTML 1.0 published) |
| Type | Document |
| Current standard | HTML Living Standard (WHATWG) |
| Based on | SGML (early versions); independent standard since HTML5 |
What is a HTML file?
HTML is the standard markup language used to create web pages. Every website you visit is built on HTML files that tell the browser what content to show and how to organize it. Browsers read HTML and render it as the visual pages users see.
An HTML file is a plain text document containing tags wrapped in angle brackets, like <p> or <h1>. These tags mark up content to give it meaning: headings, paragraphs, links, images, tables, and forms. Browsers interpret the tags and display the content visually, ignoring the markup itself. HTML does not control visual styling on its own; that is handled separately by CSS.
History
Tim Berners-Lee first described HTML in a document called 'HTML Tags' circulated at CERN in late 1991. He designed it as a simple way for physicists to share research documents across different computer systems. HTML 1.0 was published in 1993, and the language has evolved through versions 2.0, 3.2, 4.01, and XHTML before HTML5 arrived in 2014. Today the WHATWG maintains an open, continuously updated HTML Living Standard.
How it works
An HTML document starts with a <!DOCTYPE html> declaration, followed by an <html> root element. Inside are two main sections: <head> for metadata like the page title and linked stylesheets, and <body> for the visible content. Tags are nested to form a tree structure called the DOM (Document Object Model), which browsers and scripts use to access and manipulate page content.
What it is used for
- Building web pages and web applications
- Creating emails in HTML format for richer layouts
- Storing structured documents that need to be opened in a browser
- Archiving web content for offline reading
How to open it
Any web browser can open an HTML file directly from your disk or from a web server. Text editors and code editors like VS Code also open HTML files so you can read or edit the raw markup.
Pros and cons
Strengths
- Universally supported by every web browser without plugins
- Plain text format that is easy to read, edit, and version-control
- Free and open standard with no licensing requirements
- Works on any operating system or device
Trade-offs
- Presentation and layout require separate CSS files to look polished
- Interactive behavior requires JavaScript, adding complexity
- Older HTML files may use deprecated tags that modern browsers handle inconsistently
- Not ideal for print-ready documents where precise layout control is needed
Convert HTML files
Free, in your browser, no signup. Start at the HTML converter, or jump straight to a popular conversion below.
From HTML
Curious how fast and how small? See our measured conversion benchmarks.
HTML FAQ
What is the difference between HTML and HTML5?
HTML5 is the fifth major version of HTML, introduced in 2014. It added native support for video, audio, canvas drawing, and new semantic tags like <article> and <section>. The current HTML Living Standard is a direct continuation of HTML5.
Can I open an HTML file without an internet connection?
Yes. HTML files are stored locally and any browser can open them from your hard drive. You do not need an internet connection unless the page loads external resources like images or scripts from a remote server.
Is HTML a programming language?
No. HTML is a markup language, not a programming language. It describes the structure and content of a document using tags but does not have logic, loops, or conditions. JavaScript is the programming language used alongside HTML on the web.
Can I convert an HTML file to PDF or another format?
Yes. Browsers can print or save HTML pages as PDFs using the built-in print dialog. Online converters can also turn HTML files into formats like PDF, DOCX, or plain text.