HTML Emojis

Last Updated :
Discuss
Comments

Question 1

What is an HTML emoji?

  • A small image inserted via <img> tag

  • A special Unicode character displayed as an icon

  • A JavaScript object

  • A CSS background image

Question 2

Which character encoding is used to display emojis correctly in HTML?

  • ASCII

  • ISO-8859-1

  • UTF-8

  • UTF-16

Question 3

How can you insert a smiling face emoji using decimal Unicode in HTML?

  • &#x1F604;

  • <emoji>128516</emoji>

  • \u1F604

  • &#128516;

Question 4

How can you insert the same smiling face emoji using hexadecimal Unicode?

  • &#128516;

  • &#x1F604;

  • \x1F604

  • <hex>1F604</hex>

Question 5

Which HTML tag sets the character encoding for the page?

  • <meta charset="UTF-8">

  • <head charset="UTF-8">

  • <encoding UTF-8>

  • <html encoding="UTF-8">

Question 6

How can you increase the size of an emoji in HTML?

  • Using <img> width and height

  • Using CSS font-size

  • Using HTML <size> attribute

  • Using JavaScript only

There are 6 questions to complete.

Take a part in the ongoing discussion