Quiz about HTML Emojis

HTML Emojis

Last Updated :
Discuss
Comments

Question 1

What is an HTML emoji?

  • A

    A small image inserted via <img> tag

  • B

    A special Unicode character displayed as an icon

  • C

    A JavaScript object

  • D

    A CSS background image

Question 2

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

  • A

    ASCII

  • B

    ISO-8859-1

  • C

    UTF-8

  • D

    UTF-16

Question 3

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

  • A

    &#x1F604;

  • B

    <emoji>128516</emoji>

  • C

    \u1F604

  • D

    &#128516;

Question 4

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

  • A

    &#128516;

  • B

    &#x1F604;

  • C

    \x1F604

  • D

    <hex>1F604</hex>

Question 5

Which HTML tag sets the character encoding for the page?

  • A

    <meta charset="UTF-8">

  • B

    <head charset="UTF-8">

  • C

    <encoding UTF-8>

  • D

    <html encoding="UTF-8">

Question 6

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

  • A

    Using <img> width and height

  • B

    Using CSS font-size

  • C

    Using HTML <size> attribute

  • D

    Using JavaScript only

There are 6 questions to complete.

Take a part in the ongoing discussion