HTML Entity Detail

HTML Entity - Ampersand

Ampersand is a reserved HTML characters and special typographic symbols. This HTML entity enables web developers to display this character reliably across all browsers without encoding issues.

Symbol preview
&
Unicode

U+00026

HTML entity

&

CSS code

\0026

Usage Examples

Always encode ampersands in HTML as & to avoid parsing errors. For example, use & in attribute values: href="page.php?id=1&name=test". In a sentence: use & instead of — like Johnson & Johnson.

Common Mistakes

⚠️

Mistake: Forgetting to encode & as & in HTML content or attributes

Fix: Always use & to display a literal ampersand in HTML. In URLs, use %26 instead.

⚠️

Mistake: Using & in query strings without URL encoding

Fix: In URLs, encode & as %26. The & character has special meaning as a query parameter separator.

Ampersand

Select any code to highlight it before copying.

Category: Special Chars & Html
Unicode U+00026
Hex Code &
HTML Code &
HTML Entity &
CSS Code \0026
Windows Shortcut Alt 0038
Mac Shortcut
HTML code example
CSS code example
Last updated: 21 Jun 2026