start learning
Image 1
320101585

meta charset tag

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="UTF-8">

The charset meta tag must be placed between the <head> and </head> as follow:


<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Sample Page</title>
</head>
<body>
      <!-- body content here -->
<footer>
        <!-- Footer content here -->
    </footer>
</body>
</html>