Friday, October 26, 2012

Printing Special Characters in HTML

HTML has alternative coding for showing special characters. 

For example :

" " is equivalent to having a space
"©"  is equivalent to copyright sign

When we write "&copy" in our HTML, browser renders the corresponding copyright sign in the screen.

But problem is, how to print the word "&copy" itself on the screen? 

Here is the solution :
"©

Write the above code and this would do just the thing we want to achieve.

No comments: