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)
\0026JavaScript Unicode (\uXXXX)
\u0026URL Percent Encoded
%26Real-World Implementation Snippets
HTML5 Document
<p>Example: &</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 "&". If using numeric codes, you can use the decimal code "&" or hex code "&".