MCQs on HTML Entities and Special Characters | HTML

Chapter 6 of HTML, focusing on HTML Entities and Special Characters, is vital for encoding characters like reserved symbols, icons, emojis, and custom symbols. Understanding these concepts ensures seamless character representation on webpages, crucial for modern web development. Below are 30 multiple-choice questions (MCQs) that cover these essential aspects.


MCQs on “HTML Entities and Special Characters”

Section 1: Using Entities for Reserved Characters

  1. Which HTML entity represents the less-than symbol (<)?
    • a) &lt;
    • b) &gt;
    • c) &amp;
    • d) &lt;&gt;
  2. What is the HTML entity for an ampersand (&)?
    • a) &amp;
    • b) &and;
    • c) &lt;
    • d) &copy;
  3. The HTML entity &quot; is used for which symbol?
    • a) Single quote
    • b) Double quote
    • c) Less-than sign
    • d) Greater-than sign
  4. Which of the following HTML entities represents a non-breaking space?
    • a) &nbsp;
    • b) &space;
    • c) &nbsp;
    • d) &break;
  5. The &gt; entity is used to represent:
    • a) Greater-than sign
    • b) Less-than sign
    • c) Greater-than or equal to
    • d) Equal sign
  6. What is the purpose of using HTML entities for reserved characters?
    • a) To display them as normal text
    • b) To encode characters that have special meaning in HTML
    • c) To style the characters
    • d) To store characters in the database
  7. Which HTML entity represents the copyright symbol (©)?
    • a) &copy;
    • b) &copyright;
    • c) &reg;
    • d) &circled;
  8. What does the entity &lt; represent?
    • a) Left angle bracket
    • b) Less-than sign
    • c) Left parenthesis
    • d) Left arrow
  9. Which of the following is used for representing the exclamation mark (!) in HTML?
    • a) &excl;
    • b) &bang;
    • c) &exlm;
    • d) &exclamation;
  10. What is the HTML entity for the copyright symbol (©)?
    • a) &copy;
    • b) &copyrite;
    • c) &reg;
    • d) &cl;

Section 2: Adding Icons via Entities

  1. Which HTML entity is used to represent a heart symbol?
    • a) &hearts;
    • b) &heart;
    • c) &club;
    • d) &spades;
  2. The HTML entity &starf; is used to display:
    • a) Star
    • b) Heart
    • c) Diamond
    • d) Circle
  3. What HTML entity is used for the smiley face symbol (☺)?
    • a) &smiley;
    • b) &face;
    • c) &sol;
    • d) &smile;
  4. Which HTML entity displays the thumbs up icon (👍)?
    • a) &thumbsup;
    • b) &plus;
    • c) &up;
    • d) &thumb;
  5. The entity &spades; displays what symbol?
    • a) Heart
    • b) Diamond
    • c) Spade
    • d) Club
  6. How is a check mark symbol (✔) represented in HTML entities?
    • a) &check;
    • b) &checkmark;
    • c) &checkmark1;
    • d) &tick;
  7. What is the HTML entity for the crown symbol?
    • a) &crown;
    • b) &crownofthorns;
    • c) &tiara;
    • d) &king;
  8. Which HTML entity represents a music note symbol?
    • a) &musical;
    • b) &note;
    • c) &music;
    • d) &hearts;
  9. What entity represents a clover symbol (♣)?
    • a) &club;
    • b) &spades;
    • c) &diamond;
    • d) &heart;
  10. Which of the following is the correct HTML entity for a sun symbol?
    • a) &sun;
    • b) &sol;
    • c) &sunny;
    • d) &bright;

Section 3: Emojis and Custom Symbols

  1. What is the HTML entity for the grinning face emoji (😀)?
    • a) &grin;
    • b) &grinning;
    • c) &emoji1;
    • d) &grinningface;
  2. Which HTML entity represents a fire emoji (🔥)?
    • a) &fire;
    • b) &flame;
    • c) &fireemoji;
    • d) &hot;
  3. What does the HTML entity &sparkles; represent?
    • a) Stars
    • b) Glitter
    • c) Sparkles
    • d) Fireworks
  4. Which entity displays the smiley face with sunglasses (😎)?
    • a) &cool;
    • b) &smile2;
    • c) &sunglasses;
    • d) &smiley;
  5. The entity &rose; is used for displaying which symbol?
    • a) Rose flower emoji
    • b) A red flower
    • c) A red heart
    • d) A pink flower
  6. What entity represents the thumbs-down emoji (👎)?
    • a) &thumbsdown;
    • b) &downthumb;
    • c) &thumbs-bad;
    • d) &downvote;
  7. Which HTML entity represents a pizza slice emoji (🍕)?
    • a) &pizza;
    • b) &food;
    • c) &slice;
    • d) &foodslice;
  8. How is the panda face emoji (🐼) represented in HTML?
    • a) &panda;
    • b) &pandaface;
    • c) &animal1;
    • d) &pandaemoji;
  9. Which HTML entity is used for the airplane emoji (✈)?
    • a) &airplane;
    • b) &fly;
    • c) &plane;
    • d) &travel;
  10. What is the HTML entity for the victory hand emoji (✌)?
    • a) &peace;
    • b) &hand;
    • c) &peacehand;
    • d) &vsign;

Answer Key (Tabular Form)

QnoAnswer
1a) &lt;
2a) &amp;
3b) Double quote
4a) &nbsp;
5a) Greater-than sign
6b) To encode characters that have special meaning in HTML
7a) &copy;
8b) Less-than sign
9a) &excl;
10a) &copy;
11a) &hearts;
12a) Star
13a) &smiley;
14a) &thumbsup;
15c) Spade
16b) &checkmark;
17a) &crown;
18b) &note;
19a) &club;
20c) &sunny;
21d) &grinningface;
22a) &fire;
23c) Sparkles
24c) &sunglasses;
25a) Rose flower emoji
26a) &thumbsdown;
27a) &pizza;
28a) &panda;
29a) &airplane;
30c) &peacehand;

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top