How to create the ampersand symbol in HTML

A reference can be used to add special characters/symbols to an HTML webpage, an entity name, an entity number, or hexadecimal.

There are three methods for adding an ampersand in HTML:

The ampersand symbol
The ampersand symbol
Method Ampersand symbol
Entity number &#38
Entity name &amp
Hexadecimal reference &#x26

Code

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved