0

我的模板包括以下内容:

      <h1 style="height: 80px;" /><img border="0" src="/somemoduledirectoryhere/Headline.ashx?c=sometexthere&amp;fc=" alt="anothertexthere" /></h1>
   <h2 style="margin-top: 20px;margin-left: 5px;">someheadlinehere</h2>

我在 XHTML 1.0 过渡标记期间收到以下错误。

文档类型在此处不允许元素“h2”;缺少“object”、“applet”、“map”、“iframe”、“button”、“ins”、“del”开始标签之一

未打开的元素“h1”的结束标记

请您建议我如何解决这两个问题?

谢谢你。

4

3 回答 3

0
<h1 style="height: 80px;" />
                          ^

删除自闭合标记语法。

于 2010-02-21T22:15:34.530 回答
0

您正在自行关闭 H1 标签

删除正斜杠:

<h1 style="height: 80px;" />

所以这是

<h1 style="height: 80px;">
于 2010-02-21T22:16:00.850 回答
0

在第一行,你 self-close h1

<h1 style="height: 80px;" />

应该

<h1 style="height: 80px;">
于 2010-02-21T22:16:04.747 回答