HTML Basics Tut...LOGIN

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">
    双十一快到了&nbsp;&nbsp;&nbsp;&nbsp;
    推荐大家去淘宝上多买点书,这本<PHP高级程序设计:模式、框架与测试>
    只要10&yen;
     </font>
    </body>
</html>

Note: Remember to add ";" symbol, otherwise it will not be recognized.

There are two left. Please try it yourself during practice

Next Section
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <font size="4"> 双十一快到了     推荐大家去淘宝上多买点书,这本<PHP高级程序设计:模式、框架与测试> 只要10¥ </font> </body> </html>
submitReset Code
ChapterCourseware