my template includes following:
<h1 style="height: 80px;" /><img border="0" src="/somemoduledirectoryhere/Headline.ashx?c=sometexthere&fc=" alt="anothertexthere" /></h1>
<h2 style="margin-top: 20px;margin-left: 5px;">someheadlinehere</h2>
I receive following errors during XHTML 1.0 transitional markup.
document type does not allow element "h2" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
end tag for element "h1" which is not open
Would you please sug开发者_开发问答gest me how to fix these two problems?
Thank you.
You're self closing the H1 tag
Remove the forward slash in:
<h1 style="height: 80px;" />
so its
<h1 style="height: 80px;">
<h1 style="height: 80px;" />
^
Remove the self-closing tag syntax.
In first line, you self-close h1
:
<h1 style="height: 80px;" />
should be
<h1 style="height: 80px;">
精彩评论