I have a simple html webpage currently implemented, and my Firefox web console has the following complaint about it when loaded remotely:

[13:08:03.588] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

The declaration I use is a simple <!DOCTYPE html> declaration, which is what I was taught to use. Can someone explain to me what code is missing from my html file in order to make Firefox stop making this complaint?

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
    </head>
    <body>
    </body>
</html>

Thanks :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.