HTML and CSS

Arrow at the top

Lorem Ipsum
HTML
<section class="demo-section">
<div class="demo-arrow-container">
<div class="demo-arrow">&#x25B2;</div>
</div>
<div class="demo-content">Lorem Ipsum</div>
</section>
CSS
.demo-section {
  margin: 2em 0; 
}

.demo-arrow-container {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center 
}

.demo-arrow {
  position: absolute;
  top: -35px;
  font-size: 40px;
  color: #000000;
} 
  
.demo-content {
  background: #000;
  color: #FFFFFF;
  padding: 1em;
  border-radius: 6px;
}

Explanation

In HTML, you can represent characters using their Unicode code point in hexadecimal form with the &#x; syntax. For example, the upward triangle symbol (▲) can be represented as &#x25B2;.

Char Decimal Hexadecimal
â–² 9650 25B2
â–³ 9651 25B3
â–´ 9652 25B4
â–µ 9653 25B5
â–¶ 9654 25B6
â–· 9655 25B7
â–¸ 9656 25B8
â–¹ 9657 25B9
â–º 9658 25BA
â–» 9659 25BB
â–¼ 9660 25BC
â–½ 9661 25BD
â–¾ 9662 25BE
â–¿ 9663 25BF
â—€ 9664 25C0
◁ 9665 25C1
â—‚ 9666 25C2
â—ƒ 9667 25C3
â—„ 9668 25C4
â—… 9669 25C5
â—¢ 9698 25E2
â—£ 9699 25E3
â—¤ 9700 25E4
â—¥ 9701 25E5
â—¸ 9720 25F8
â—¹ 9721 25F9
â—º 9722 25FA
â—¿ 9727 25FF
🞀 128896 1F780
🞁 128897 1F781
🞂 128898 1F782
🞃 128899 1F783