What is the HTML format?

HTML is the standard format used to provide web page context. An HTML page defines which elements a browser should draw, the content and style of the elements, and how the page should respond to interactions from the user. Looking back at our http://example.com/index.html response, you can see the following, which is what an HTML document looks like:

<!doctype html>
<html>
<head>
<title>Example Domain</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- The <style> section was removed for brevity -->
</head>
<body>
<div>
<h1>Example Domain</h1>
<p>This domain is established to be used for illustrative examples
in documents. You may use this domain in examples without prior
coordination or asking for permission.</p>
<p><a href="http://www.iana.org/domains/example">More
information...</a></p>
</div>
</body>
</html>

Files that adhere to the HTML specification follow a strict set of rules that define the syntax and structure of the document. By learning these rules, you can quickly and easily retrieve any information from any web page.