How to Do a Code HTML escape character via HTML Codes

How to Do a Code HTML escape character via HTML Codes

·

2 min read

we will look it out In HTML, What is the preferred way to specify HTML codes like ", and what is the major differences

" " "

There really aren't any differences

" is processed as " which is the decimal equivalent of &x22; which is the ISO 8859-1 equivalent of ".

The only reason you may be against using " is because it was mistakenly omitted from the HTML 3.2 specification.

Otherwise, it all boils down to personal preference.

This variant -

just execute this what is the output below the code

Hover me

is correct is works as expected -you can see normal quotes in render page

Here's a snippet of the HTML escape characters taken from

&#060 | < less than sign

&#064 | @ at sign

&#093 | ] right bracket

&#123 | { left curly brace

&#125 | } right curly brace

&#133 | … ellipsis

&#135 | ‡ double dagger

&#146 | ’ right single quote

&#148 | ” right double quote

&#150 | – short dash

&#153 | ™ trademark

&#162 | ¢ cent sign

&#165 | ¥ yen sign

&#169 | © copyright sign

&#172 | ¬ logical not sign

&#176 | ° degree sign

&#178 | ² superscript 2

&#185 | ¹ superscript 1

&#188 | ¼ fraction 1/4

&#190 | ¾ fraction 3/4

&#247 | ÷ division sign

&#8221 | ” right double quote

&#062 | > greater than sign

&#091 | [ left bracket

&#096 | ` back apostrophe

&#124 | | vertical bar

&#126 | ~ tilde

&#134 | † dagger

&#145 | ‘ left single quote

&#147 | “ left double quote

&#149 | • bullet

&#151 | — longer dash

&#161 | ¡ inverted exclamation point

&#163 | £ pound sign

&#166 | ¦ broken vertical bar

&#171 | « double left than sign

&#174 | ® registered trademark sign

&#177 | ± plus or minus sign

&#179 | ³ superscript 3

&#187 | » double greater-than sign

&#189 | ½ fraction 1/2

&#191 | ¿ inverted question mark

&#8220 | “ left double quote

&#8212 | — dash

Did you find this article valuable?

Support ramu k by becoming a sponsor. Any amount is appreciated!