0 html
好的,所以我似乎无法弄清楚我的代码有什么问题.
<html>
<head>
<title></title>
</head>
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h>
</html>
Run Code Online (Sandbox Code Playgroud)
你错过了一个<body>标签.
<!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">
<title></title>
</head>
<body>
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
此外,h3结束标签有一个拼写错误,我修复了.它应该是</h3>,但你有</h>.最后,如果这是一个html或xhtml文档,它需要一个doctype声明.我也添加了其中一个 - XHTML严格.有几种可能的原型; 你必须选择适合你情况的那个.这比你要求的要有所改善.