提问人:John Heyer 提问时间:12/6/2020 更新时间:12/6/2020 访问量:279
在此上下文中,不允许将 XHTML 元素作为 XHTML 元素主体的子元素
XHTML element not allowed as child of XHTML element body in this context
问:
虽然这个页面似乎加载了文件,但我从NU HTML检查器收到一个错误。不知道如何清除错误,因为看起来正文中的所有内容当然都是 XHTML 正文元素的子元素。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>How About Them Apples?</title>
<meta charset="utf-8" />
<link href="apples.css" rel="stylesheet" type="text/css" />
</head>
<body>
<apples xmlns:apls="https://www.dole.com/en/products/apples">
<apls:apple>
<apls:name>Red Delicious</apls:name>
<apls:color>Red</apls:color>
</apls:apple>
<apls:apple>
<apls:name>Golden Delicious</apls:name>
<apls:color>Yellow</apls:color>
</apls:apple>
</apples>
</body>
</html>
答: 暂无答案
评论