| Start | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common Special Characters Some character may be reserved for HTML and cannot be used directly as it may obstruct the actual HTML codes. For example, trying to display the left and right angle brackets ( For this purpose, character entities are created. These are of the form
Thus, to write © 2016 Stack Exchange Inc. the following HTML code is used: |
||||||||||||||||||||||||||||||||||||||||||||
| Character Entities in HTML Many symbols and special characters are required while developing a web page in html, but as we know that sometimes the use of characters directly may interfere with the actual html code which have certain characters reserved and also certain characters being not available on keyboard. Thus, to avoid the conflict and at same time to be able to use different symbols in our code w3 org provides us with 'Character Entities'. Character Entities are predefined with 'Entity Name' - &entity_name; and 'Entity Number' - &entity_number; so we need to use either of the two for the required symbol to be rendered on our page. The list of few Character Entities can be found at https://dev.w3.org/html5/html-author/charref (opens new window) A simple example with the use of character entity for 'magnifying glass' : which renders as |
Read Article
https://develop.horje.com/learn/1434/reference