From the course: HTML Essential Training

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Character entity reference

Character entity reference

- [Narrator] Sometimes you may need to use characters that are not on a standard keyboard, such as the copyright symbol. You can even include shapes like arrows, or a check mark. This website, HTML Arrows is one of the many resources that you can refer to to see a list of all the special characters and symbols. These symbols can be copied and pasted directly into HTML, but sometimes you may need to use the character reference, which are the special codes shown below each symbol. Let's look at a code pen demo. If I were to write an article about HTML, it would include some code samples, but if I try to add an HTML tag to be displayed as text, the browser will interpret anything enclosed within the angle brackets as HTML. In this case, I can't use the actual brackets. Instead, the character reference can be used to represent the brackets, also referred to as less than and greater than signs. Let's go back to HTML Arrows so we can take a closer look at the different formats. Scroll down…

Contents