HTML Symbols Tutorial
In HTML, symbols can be displayed using special character entities called HTML entities. These entities begin with an ampersand (&) and end with a semicolon (;). Here are a few commonly used HTML symbols:
Symbol | Description | Entity |
---|---|---|
< | Less than | < |
> | Greater than | > |
& | Ampersand | & |
" | Double quote | " |
© | Copyright symbol | © |
To use these symbols in your HTML code, simply replace the symbol with its corresponding entity. For example, to display a less than sign (<) in your code, use <.
Here is an example of how to use HTML symbols:
<h1>Welcome to my website!</h1>
<p>Please feel free to contact us at info@example.com.</p>
In the above example, we used @ to display the "@" symbol.
Remember to always use HTML entities when you want to display special characters in your HTML code. This ensures that the characters render correctly on all devices and browsers.