Mid JavaScript

What are HTML entities?

Entities display reserved characters (like <, >, &) or symbols not on the keyboard.

Example:

<p>Use &lt;div&gt; for containers and &amp; for ampersands.</p>

Key Takeaway:

Entities prevent HTML from confusing symbols with code.

More from JavaScript Tutorial

All questions for this course