开发者

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

开发者 https://www.devze.com 2022-12-17 00:13 出处:网络
I\'m using this dtd <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">

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

精彩评论

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

关注公众号