HTML Academy
Previous task
Text Formatting1/26
Back to the list of tasks
  • 1. Unicode Characters
  • 2. The text-shadow Property
  • 3. Horizontal Text Shadow Offset
  • 4. Vertical Text Shadow Offset
  • 5. Text Shadow Feathering
  • 6. The Text Shadow Color
  • 7. Embedded Effect for Text
  • 8. Decorative Retro Shadow
  • 9. Challenge: Psychedelic Shadows
  • 10. Logo: Custom Font
  • 11. Logo: Icon Font
  • 12. Logo: Size Alignment
  • 13. Applying Decorative Styling to the Line, Step 1
  • 14. Applying Decorative Styling to the Line, Step 2
  • 15. The text-indent Property
  • 16. The: first-letter Pseudo Element
  • 17. : first-line Pseudo Element
  • 18. Column Markup: The column-count Property
  • 19. Column Markup: The column-width Property
  • 20. Column Markup: The column-gap Property
  • 21. Text Direction
  • 22. Text Direction and Tables
  • 23. Overflowing Text
  • 24. Spacing Between Words
  • 25. Challenge: Why So Serious?
  • 26. Challenge: Play With Fonts
The text-shadow Property
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Unicode Characters

In this section, we will explore opportunities for styling text using CSS.

We will be creating captions for photos and beautiful text design elements, and we will also examine some techniques for styling long-form texts.

First, let’s create a small comic strip. It will consist of just four graphic symbols that will introduce us to the story of the main character of the comic, the emoticon.

But where do we get the graphic symbols? This is where the Unicode encoding comes in handy. In addition to the characters that we can find on our keyboard, the Unicode encoding standard also contains characters from almost all written languages as well as various special characters. In HTML markup, we can write any Unicode character using special character codes: either a word, such as, for example, &name;, or a string of numbers using a decimal or hexadecimal code, such as, for example, à.

Examples of Unicode characters:

©©©
ααα
¶¶¶

There is even a special service that helps you find and copy the desired character.

Now that we have figured out the theory, let’s create a comic about the adventures of an emoticon.

Comments

  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <title>Unicode Characters</title> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Trip to Mexico</h1> <p> <span></span> <span></span> <span></span> <span></span> </p> </body> </html>
CSS
body { text-align: center; font-family: "Arial", sans-serif; } span { display: inline-block; margin-right: 12px; width: 140px; font-size: 150px; } span:first-child { color: #ffdc00; } span:nth-child(2) { color: #aaaaaa; } span:nth-child(3) { color: #ff851b; } span:last-child { color: #ff4136; } p { display: inline-block; width: 80%; }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Add the character &#9786; to the first span,
    2. add &#9992; to the second one,
    3. add &#9788; to the third one,
    4. and finally add &hearts; to the fourth one.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.