Use HTML Entities to Display Reserved Characters

Published: 07 March 2021
on channel: Craig A. Bourne
3,794
177

► Browsers will always read certain characters as being intended for use in HTML code.

An example is the angled brackets that we use to create tags. When we use the less-than angled bracket, the browser will immediately interpret any text that follows, as the name of some HTML element’s opening tag.

HTML Entities solve this problem or displaying reserved characters by giving us mnemonic aliases that we can use instead.

When the browser reads these aliases, it automatically replaces them with the character that the alias represents.

HTML Entities are an often overlooked topic that you will rarely see addressed, but incredibly important nonetheless.

► Timestamps:
0:00 Start
2:04 MDN Entities
3:08 Using entities to display reserved characters
3:38 Entity codes
3:51 Entity syntax
4:28 Displaying reserved characters with entities
6:35 Summary

► Get the code:
Repo: https://github.com/craigabourne/html-...

► Links used in the video:
https://developer.mozilla.org/en-US/d...
https://www.w3schools.com/html/html_e...
dev.w3.org/html5/html-author/charref

► The HTML for Absolute Beginners Playlist:    • HTML for Absolute Beginners  

► Social Media:
  / craigabourne  
  / craigabourne  

► Code & Projects:
https://github.com/craigabourne
https://codepen.io/craigabourne


Watch video Use HTML Entities to Display Reserved Characters online without registration, duration hours minute second in high quality. This video was added by user Craig A. Bourne 07 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,794 once and liked it 177 people.