HTML Symbols


The HTML Symbols refers to many physics, mathematical, technical and currency symbols which are not present on a normal keyboard. Therefore, to set such symbols to web page, we use HTML entity name. If no entity name exists then you can use entity number which is a decimal or a hexadecimal reference.

Syntax

Following is the syntax −

&entityName;

Or

&#entityHexcode;

Or

&#entityHexadecimalcode;

Let us see an example of HTML Symbols:

Example

Live Demo

<!DOCTYPE html>
<html>
<style>
   body {
      color: #000;
      height: 100vh;
      background-color: #8BC6EC;
      background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
      text-align: center;
   }
</style>
<body>
<h1>HTML Symbols Demo</h1>
<p>Some Mathematical Symbols</p>
<p>>&#8704 -- for all symbol</p>
<p>&nabla; -- nabla symbol</p>
<p>&empty; -- empty sets symbol</p>
<p>&exist; -- there exists symbol</p>
<p>Some Greek Symbols</p>
<p>&gamma; -- gamma symbol</p>
<p>&delta; -- delta symbol</p>
<p>&epsilon; -- epsilon symbol</p>
<p>&alpha; -- alpha symbol</p>
</body>
</html>

Output

Updated on: 17-Feb-2021

166 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements