Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML interpretation of Quotation mark: `"` vs `”`

Tags:

html

Can someone explain what's going on for this code to produce green text:

<font color=”red”>Red, anyone?</font>

http://jsfiddle.net/WGSNX/7/. I assume it's something to do with the first symbol, but why should HTML parse that differently to "?

like image 752
ChrisW Avatar asked Dec 06 '22 04:12

ChrisW


1 Answers

It is simple: = ”red” = 0red0 (" is not ascii so make 0) = 00ed0 (r is not hex so make 0) = 00ed00 (pad)

#00ed00 is green

like image 146
João Rafael Avatar answered Feb 07 '23 03:02

João Rafael