开发者

Attribute "lang" exists, but can not be used for this element.? W3C validation error

I'm using this dtd

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

Error is for this attribute开发者_Python百科?

<html lang="en">

Should i remove this from DTD?


Just use <doctype html>. You're not using XML anyway, and the xml:lang attribute doesn't do anything in HTML.


I think this is it:

A. Changes from XHTML 1.0 Strict

1. On every element, the lang attribute has been removed in favor of the xml:lang attribute (as defined in [XHTMLMOD]).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜