Question:

Which one of the following options contains the list of escape characters in the HTML escape function?

Show Hint

HTML escape characters are essential to prevent code injection and formatting issues. They ensure that reserved characters appear as text rather than being interpreted as code.
Updated On: Feb 6, 2025
  • \&, \(<\), \(>\), *, "
  • \&, (, ), ", *
  • \&, \(<\), \(>\), ", '
  • \&, ', (, ), ;
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation


Step 1:
Understanding HTML Escape Characters
HTML escape characters are used to represent special symbols that may be interpreted differently in HTML. These characters include:
- \& (\& - ampersand)
- \textless\ (\textless - less than)
- \textgreater\ (\textgreater - greater than)
- \" (\" - double quotes)
- \' (\' - single quote/apostrophe)
Step 2:
Analyzing the Given Options
- Option (A): Contains `*`, which is not an HTML escape character.
- Option (B): Contains `(` and `)`, which are not escape characters in HTML.
- Option (C) (Correct Answer): Contains all correct escape characters used in HTML.
- Option (D): Contains `;`, which is not an escape character.
Was this answer helpful?
0
0