Logo
/
Frontend
/
HTML Course
/

Special HTML Characters

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:

CharacterCode
♣
♠
♥
♦

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

If you've reached a deadlock it's time to ask your question in the «Discussions». How ask a question correctly:

  • Be sure to attach the test output, without it it's almost impossible to figure out what went wrong, even if you show your code. It's complicated for developers to execute code in their heads, but having a mistake before their eyes most probably will be helpful.
Found a bug? Have something to add? Pull requests are welcome!