How do I get special characters in my html?



How do I get special characters in my html?..

Answer / 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

More HTML DHTML Interview Questions

What is the difference between id and class attributes?

4 Answers  


How to enter element content?

1 Answers  


How do you change background color in html?

1 Answers  


What iscell spacing and cell padding?

1 Answers  


What do you call html tags with no closing tags?

1 Answers  


How do you create a title tag?

1 Answers  


How do you write a meta description?

1 Answers  


How do I make a clickable link in an email?

1 Answers  


My hyperlink or image is not displaying correctly, what is wrong with it?

1 Answers  


What is td in html?

1 Answers  


How many HTML tags are should be used for the most simple of web pages?

1 Answers  


What are the body tag attributes?

1 Answers  


Categories