typestar

Character entities in HTML

Escaping the characters that markup itself reserves.

<p>
  Write <code>&lt;div&gt;</code> to show a tag, and
  <code>&amp;amp;</code> to show an ampersand.
</p>
<p>
  Filter with <code>WHERE total &gt;= 100 &amp;&amp; paid</code>.
</p>
<p>Version&nbsp;2.1 &mdash; released today. Copyright &copy; 2026.</p>

How it works

  1. &lt; and &gt; show angle brackets as text.
  2. &amp; is needed even inside attribute values.
  3. &nbsp; keeps two words on the same line.

The run, in numbers

Lines
8
Characters to type
247
Tokens
65
Three-star pace
60 tpm

At the three-star pace of 60 tokens a minute, this run takes about 65 seconds.

Type this snippet

Step 3 of 3 in The document, step 3 of 28 in Document structure.

← Previous Next →