EN
HTML - entities
0
points
In this article, we would like to show you how to create and use HTML Entities.
Quick solution:
&entity_name;
or:
&#entity_number;
Commonly used HTML Entities
| Character | Description | Entity name | Entity number |
|---|---|---|---|
| non-breaking space | |   |
< | less than | < | < |
> | greater than | > | > |
& | ampersand | & | & |
" | quotation mark | " | " |
' | apostrophe | ' | ' |
Practical example
In this example, we present commonly used HTML Entities.
// ONLINE-RUNNER:browser;
<!doctype html>
<html>
<body>
<div>non-breaking space: " " or " "</div>
<div>greater than: > or ></div>
<div>less than: < or <</div>
<div>ampersand: & or &</div>
<div>quotation mark: " or "</div>
<div>apostrophe: ' or '</div>
</body>
</html>
Output:
non-breaking space: " " or " "
greater than: > or >
less than: < or <
ampersand: & or &
quotation mark: " or "
apostrophe: ' or '