02-html-2.0.demo.html
html-spec/examples/02-html-2.0.demo.html · 120 line(s) · html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML 2.0 (RFC 1866, 1995) — Use-Case Demonstration</title>
</head>
<body>
<h1>HTML 2.0 (RFC 1866, 1995) — Use-Case Demonstration</h1>
<p><strong>Date:</strong> 2026-10-25</p>
<p>
This document demonstrates the elements standardized by HTML 2.0 (the first formal HTML
specification) in their usual use cases. Each example states whether it still
<em>performs as expected in a modern browser</em>: ✓ Yes, or ✗ No.
</p>
<hr>
<h2>Use case 1 — Document skeleton</h2>
<p><strong>Title:</strong> html / head / body structure | <strong>Date:</strong> 2026-10-25</p>
<p>This whole page is wrapped in <code><html></code>, with a <code><head></code> (metadata) and a <code><body></code> (content) — the skeleton HTML 2.0 formalized.</p>
<p><strong>Performs as expected:</strong> ✓ Yes</p>
<hr>
<h2>Use case 2 — Paragraphs, breaks and rules</h2>
<p><strong>Title:</strong> Block text flow | <strong>Date:</strong> 2026-10-25</p>
<p>A paragraph of text.<br>A forced line break inside it.</p>
<hr>
<p>Content after a horizontal rule.</p>
<p><strong>Performs as expected:</strong> ✓ Yes</p>
<hr>
<h2>Use case 3 — Phrase (logical) markup</h2>
<p><strong>Title:</strong> Semantic inline text | <strong>Date:</strong> 2026-10-25</p>
<p>
Use <em>emphasis</em>, <strong>strong importance</strong>, <code>source code</code>,
<samp>sample output</samp>, <kbd>typed input</kbd>, a <var>variable</var>, and a
<cite>citation</cite>.
</p>
<p><strong>Performs as expected:</strong> ✓ Yes</p>
<hr>
<h2>Use case 4 — Font (physical) markup</h2>
<p><strong>Title:</strong> Presentational inline text | <strong>Date:</strong> 2026-10-25</p>
<p>This has <b>bold</b>, <i>italic</i>, and <tt>teletype</tt> text.</p>
<p><strong>Performs as expected:</strong> ✓ Yes — <code><b></code>, <code><i></code>, <code><tt></code> still render (though <code><tt></code> is obsolete in the modern standard).</p>
<hr>
<h2>Use case 5 — Block quotation and preformatted text</h2>
<p><strong>Title:</strong> Quotes and code blocks | <strong>Date:</strong> 2026-10-25</p>
<blockquote>
<p>The Web does not just connect machines, it connects people.</p>
</blockquote>
<pre>
function greet() {
return "hello";
}
</pre>
<p><strong>Performs as expected:</strong> ✓ Yes</p>
<hr>
<h2>Use case 6 — Ordered and unordered lists</h2>
<p><strong>Title:</strong> Numbered and bulleted lists | <strong>Date:</strong> 2026-10-25</p>
<ol>
<li>First step</li>
<li>Second step</li>
</ol>
<ul>
<li>A point</li>
<li>Another point</li>
</ul>
<p><strong>Performs as expected:</strong> ✓ Yes — <code><ol></code> was new in HTML 2.0.</p>
<hr>
<h2>Use case 7 — Embedded image</h2>
<p><strong>Title:</strong> An inline image | <strong>Date:</strong> 2026-10-25</p>
<p><img src="https://www.w3.org/Icons/w3c_home" alt="W3C logo" width="72" height="48"></p>
<p><strong>Performs as expected:</strong> ✓ Yes — <code><img></code> with <code>src</code> and <code>alt</code> was new in HTML 2.0.</p>
<hr>
<h2>Use case 8 — A form with controls</h2>
<p><strong>Title:</strong> User input form | <strong>Date:</strong> 2026-10-25</p>
<form action="#" method="get">
<p>Name: <input type="text" name="fullname"></p>
<p>Comments:<br>
<textarea name="comments" rows="3" cols="30"></textarea></p>
<p>Choose:
<select name="choice">
<option>Option A</option>
<option>Option B</option>
</select></p>
<p><input type="submit" value="Send"></p>
</form>
<p><strong>Performs as expected:</strong> ✓ Yes — forms (<code>form</code>, <code>input</code>, <code>textarea</code>, <code>select</code>, <code>option</code>) were new in HTML 2.0.</p>
<hr>
<h2>Use case 9 — Searchable-document prompt</h2>
<p><strong>Title:</strong> Keyword search prompt | <strong>Date:</strong> 2026-10-25</p>
<p><code><isindex></code> marked the document as searchable. (Not emitted live — no longer renders a prompt.)</p>
<p><strong>Performs as expected:</strong> ✗ No — obsolete; use a <code><form></code> with an <code><input></code>.</p>
<hr>
<p><strong>Summary:</strong> HTML 2.0's structural, text, list, image and form elements all still
perform as expected today. Only <code><isindex></code> (and the now-obsolete <code><tt></code>)
fall short of modern expectations.</p>
</body>
</html>