HTML - Entities & Symbols

Overview

Estimated time: 15–20 minutes

Entities represent characters that would otherwise be parsed as markup or are not easily typed on the keyboard.

Common entities

< > & "  
© ® ™ ♥

Common Pitfalls

  • Forgetting to escape < and & in text contexts.

Exercises

  1. Write a code example showing <div> literally using entities so it renders as text.