HTML Entities (Character References)

HTML Living Standard

Use HTML character references to display characters that have a special meaning in markup. Forms such as & and < are called named character references, often referred to as HTML entities.

On this page

Named Character References

HTML reads some characters as markup. Use &amp; for &, &lt; for <, and &gt; for >. A character reference is decoded to text, so &lt;strong&gt; displays the tag name as text.

How to try it Save this example as a new .html file, then open it in your browser. After a change, save and reload.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Named Character References</title>
</head>
<body>
<p>Files &amp; Folders</p>
<p>Use &lt;strong&gt; for important text.</p>
</body>
</html>

What to expect The preview shows Files & Folders and the literal text <strong>.

Mark up an article

Write a short article with one main heading and two subsections. Mark an important deadline with strong and a quotation with blockquote. Read only the headings and check whether they summarize the article.

Official references