Role: Specifies the character encoding for the HTML document.
Importance: Ensures proper display of all characters and symbols, preventing encoding issues that can affect user experience and SEO.
meta charset tag
The charset meta tag must be placed between the <head> and </head> as follow:
<!DOCTYPE html>
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<!-- body content here -->
<footer>
<!-- Footer content here -->
</footer>
</body>
</html>
×