pirate flag


pirate flag

codepoints: 1F3F4 200D 2620


Copy and Paste

Copy and paste pirate flag emoji


NameEmojiCode Point
1pirate flag๐Ÿดโ€โ˜ U+1F3F4 U+200D U+2620

Usage of emoji in HTML

You can paste the chosen Emoji

<p> ๐Ÿดโ€โ˜  </p>

Another option is to use the codepoint of the Emoji and replacing (U+) with (&#x).

<p> &#x1F3F4&#x200D&#x2620 </p>

Usage of emoji in CSS

You need to use the ::before or ::after pseudo-element coupled with the content property where you paste the Emoji as the value.

.element::before{
content: "๐Ÿดโ€โ˜ "
}

Another option is to use codepoint replacing (U+) with (\0).

.element::before{
content: "\01F3F4\0200D\02620"
}

Usage of emoji in JavaScript

Paste the Emoji in the innerHTML value

document.querySelector(".element ").innerHTML = "๐Ÿดโ€โ˜ ";

Or use the String method fromCodePoint mixed with the codepoint value where you replace (U+) with (0x).

document.querySelector(".element ").innerHTML = String.fromCodePoint(0x1F3F4 ,0x200D ,0x2620);




See Also


Contact

Would you like to make a suggestion, feel free to contact us at contact@unitpedia.com