Free HTML course. Sign Up for tracking progress →

HTML: Special HTML Characters

There are special characters you can use in your text called mnemonic aliases. They allow you to use characters that are present in the symbol table but are not on the keyboard, such as math symbols or Greek:

ξ π ϒ

To record these characters, we use the &character-name; construction. It's important to pay attention to the letter case in the name of the character.

Let's take the symbols of suits in cards as an example:

Character Code
♣
♠
♥
♦

Many of these symbols can be found on Wikipedia.

The main typographic mnemonic aliases in HTML are:

  •   - a non-breaking space. This is a very important thing that allows you to stay on the same line of text so as not to spoil the logical structure of the text in certain cases
  • « and » - the left and right angle quotes («»). They're used everywhere in typography
  • — - a long dash

Aliases are common when you want to insert tags without them being processed by the browser. In this case, you can use the aliases &lt; and &gt;, which are needed to denote < and >, respectively

&lt;p&gt; this markup will not be treated as a paragraph &lt;/p&gt;

Instructions

Write the "one-fourth" fraction symbol. You can find the alias of this symbol on Wikipedia