► 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
Смотрите видео Use HTML Entities to Display Reserved Characters онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Craig A. Bourne 07 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,794 раз и оно понравилось 177 людям.