adspace


How do I get special characters in my html?

Answer Posted / Ankit Chauhan

To include special characters (like <, >, &, etc.) in your HTML, you need to escape them using their entity references. Here's a list of common entities:n```htmln< - &lt;n> - &gt;n& - &amp;n"`` - &#039; or &#x27; (single quote)n`` - &#034; or &#x22; (double quote)n``' - &#039; or &#x27; (apostrophe)n``" - &#034; or &#x22; (quotation mark)n``^ - &hat; (caret)n``_ - &lowbar; (underscore)n```htmlnFor example:n```htmln&lt;Hello, World!&gt;n``

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of edge?

947


What are the new api's provided by the html5 standard? Give a brief description of each.

899


What is the name of the website?

922


Can you list the new input type attributes in html5?

862


List out the new features of html5?

871


How do I put text on the next line in html?

871


How comfortable are you with writing html entirely by hand?

876


What is the simplest html page?

944