내 사이트의 유효성을 검사 할 때 100 개의 오류가 발생합니다. 이 작업을 완성 할 때까지 빌드를 계속하고 싶지 않습니다. 내가 한 줄 씩 지나갔고 왜 내가이 문제를 겪고 있는지 이해하지 못하고있다. 대략 초안 시작 페이지는 www.flynntec.com에 있습니다. 예 오류 : 문서 유형이 요소 문제를 허용하지 않습니다.
document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag [XHTML 1.0 Transitional]
document type does not allow element "h3" here; assuming missing "li" start-tag [XHTML 1.0 Transitional]
또는
이The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
샘플 HTML 다음 :
<li class="menu_right"><a href="#" class="drop">Access</a>
<div class="dropdown_5columns align_right">
<div class="col_5">
<h2>Microsoft Access</h2>
</div>
<div class="col_1">
<img src="media/Access Logo.png" width="120" height="118" alt="Microsoft Access" />
</div>
<div class="col_1">
<ul class="greybox"><h3>Beginner</h3><li><a href="#">Welcome to Access</a></li>
<li><a href="#">The Power of Access</a></li>
<li><a href="#">Intro to Databases</a></li>
<li><a href="#">Intro to Tables</a></li>
<li><a href="#">Creating Forms</a></li>
<li><a href="#">More...</a></li>
</ul>
</div>
<div class="col_1">
<ul class="greybox"><h3>Intermediate</h3><li><a href="#">Custom Queries</a></li>
<li><a href="#">Create Reports</a></li>
<li><a href="#">Primary Key Guide</a></li>
<li><a href="#">Filtering Quickly</a></li>
<li><a href="#">More...</a></li>
</ul>
</div>
<div class="col_1">
<ul class="greybox"><h3>Advanced</h3><li><a href="#">Web Integration</a></li>
<li><a href="#">Advanced Forms</a></li>
<li><a href="#">Using Triggers</a></li>
<li><a href="#">Shortcuts</a></li>
<li><a href="#">Expression Builder</a></li>
<li><a href="#">More...</a></li>
</ul>
</div>
<div class="col_5">
<h2>Additional Free Resources</h2>
</div>
<div class="col_3">
<img src="media/youtube-logo.jpg" alt="YouTube Picture" name="youtube" width="90" height="70" class="img_left imgshadow" id="youtube_logo_2" />
<p>Microsoft Access is an ideal small-business database engine. YouTube is a great source for Access guides. We have compiled the best, most popular Access tutorials from YouTube and put them here for your convenience. </p>
<br />
<a href="http://office.microsoft.com/en-us/training-FX101782702.aspx" target="_blank"><img src="media/microsoft-logo__111129012732.jpg" alt="" name="microsoft" width="90" height="24" class="img_left imgshadow" id="microsoft_logo_2" /></a>
<p><a href="http://office.microsoft.com/en-us/training-FX101782702.aspx" title="Microsoft Training" target="_blank">Microsoft has fantastic resources on their website. Microsoft Training can be found here.</a></p>
</div>
</div>
</li>
네, 열고 UL의 폐쇄된다.
왜 XHTML 엄격 Doctype입니까? 그게 필요 할까? HTML5 doctype 을 사용할 수 있습니까? – danludwig
나는 그것을 결코 고려하지 않았다 - 사용하는 적절한 구문은 무엇인가? – jdflynn55
<- 현재 doctype이있는 첫 번째 줄로 넣으십시오. – danludwig