34. What is the purpose of meta charset?

The charset declaration specifies the character encoding of the document. UTF-8 is the standard modern choice and supports a broad range of characters.

Key Takeaways
  • Declare character encoding early in the document.
  • UTF-8 is the common modern encoding.
Knowledge Check

Which encoding is commonly recommended for modern HTML documents?