HTML Basics Tutorial: HTML Character Entities
HTML character entity
Space: represents a half-width space. A Chinese character is 2 bytes. 1 byte is equivalent to 1 half-width space.
<:<
>:>
&:&
¥:¥
×: $times;
÷:$divide;
Through examples, you will see it more clearly
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <font size="4"> 雙十一快到了 推薦大家去淘寶上多買點書,這本<PHP高級程序設(shè)計:模式、框架與測試> 只要10¥ </font> </body> </html>
Note: Remember to add ";" symbol, otherwise it will not be recognized.
There are two left. Please try it yourself during practice