Rule from html under compatibility category
Passmarked is made out of users just like you who helped supply some content. Click below to contribute to this rule. We need you.Add content to this rule
In computing, a character encoding is used to represent a repertoire of characters by some kind of an encoding system.
Many exist such as:
Because ACSII and ANSI are so limited, UTF-8 is recommended for most scenarios users might encounter.
Meta tags allows setting the charset of a document using:
This tag is expected to be found found at the top of the head section of the page. Thus refering to this rule as The First 512 Bytes.
Fixing is a matter of making sure that the
<meta charset="UTF-8"> tag is the first element of the
So something like this:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="http://example.com/style.css" media="all" /> <meta charset="UTF-8">
should be updated to the following:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="http://example.com/style.css" media="all" />
Passmarked works best when you have an account. It allows you to keep a dashboard with saved data of the sites you have run through the system, we’ll alert you about important updates and you get access to the Passmarked Slack forum.Sign up to get started