HTML Special Chars
&

Ampersand (&)

The ampersand is the reserved escape character in HTML. Any bare "&" in an HTML document must be written as & to prevent parser errors and XSS vulnerabilities.

One-Click Copyable Code Formats

HTML Named Entity
&
HTML Decimal Code
&
HTML Hex Code
&
CSS content (\XXXX)
\0026
JavaScript Unicode (\uXXXX)
\u0026
URL Percent Encoded
%26

Real-World Implementation Snippets

HTML5 Document
<p>Example: &amp;</p>
CSS ::before / ::after
.badge::before { content: '\0026 '; }
React JSX / TypeScript
<span>{"\u0026"}</span>
Frequently Asked Questions

Ampersand (&) HTML Entity FAQ

Common questions regarding HTML escape codes, CSS pseudo-elements, and browser character encoding.

The standard HTML named entity is "&amp;". If using numeric codes, you can use the decimal code "&#38;" or hex code "&#x26;".