I\'m finishing up an HTML5 site that has a mixture of English and Mandarin Chinese.
My validator (HTML5 Validator add-on for FF) is giving me this error:
<
In HTML5 you can actually define lang
for each element. That means if you have a div
that contains Mandarin Chinese in it, just define an attribute lang="zh-CN"
for that div, like <div lang="zh-CN">
.
See below for language and charset settings
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>title</title>
.....