If an HTML document has many spaces, additional spaces are removed automatically. If the user inserts five spaces, four of them will be removed. Additional spaces can be inserted in the text by using a character entity that stands for nonbreaking space.
Example of space
Without character entities
<html>
<head>
<title>wuexerice</title>
</head>
<body>
<p>Hello wu visitors<p>
</body>
</html>
Output
you can see in this output the spaces are removed. If you want to add space more then one in your content then you have to need to use character entities as shown in the following.
With character entities
<html>
<head>
<title>wuexerice</title>
</head>
<body>
<p>Hello wu visitors<p>
</body>
</html>
Output
Common Character Entities
Some common character entities are as follows:
Entity Name | Description | Output |
Space | ||
< | Less Than | < |
> | Greater Than | > |
& | Ampersand | & |
" | Quotation mark | “ |
¢ | cent | ¢ |
£ | Pound | £ |
¥ | Yen | ¥ |
§ | Section | § |
© | Copyright | © |
® | Registered Trademark | ® |
× | Multiplication | × |
÷ | Division | ÷ |
Reference
If you want to learn more about HTML then visit the official website: Visit
Visit the HTML tutorial list. And make strong your HTML concept. Click here. wuschools.com is always written about the HTML concept for the HTML lover. Ang writes about how HTML makes your life easy if you are a web site developer. We help you to continue your learning.