หัวข้อ: กฏของ XHTML ครับ เริ่มหัวข้อโดย: genetic ที่ 11 สิงหาคม 2009, 18:00:10 ผมไม่แน่ใจว่ามันควรอยู่หมวดไหนนะครับ แต่ใครรู้ช่วยบอกทีครับ ผมไปตรวจสอบ HTML Validate มาได้ผลลัพธ์ดังนี้
document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag <a href="index.php"><div class="head_bar">บทความ: </div></a> 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>"). มันแก้อย่างไรอ่ะครับ มันเป็นปัญหาตรงแท็ก div เนี่ย หัวข้อ: Re: กฏของ XHTML ครับ เริ่มหัวข้อโดย: mr.sit ที่ 11 สิงหาคม 2009, 18:07:57 <div> เป็น block element ต้องอยู่นอก <a> ที่เป็น inline element ครับ
หัวข้อ: Re: กฏของ XHTML ครับ เริ่มหัวข้อโดย: caremine ที่ 11 สิงหาคม 2009, 18:09:54 <div class="head_bar"><a href="index.php">บทความ: </a></div>
หัวข้อ: Re: กฏของ XHTML ครับ เริ่มหัวข้อโดย: genetic ที่ 11 สิงหาคม 2009, 21:19:43 โห อารายเนี้ยยยย แก้เยอะเรย
ขอบคุงนะงับ ที่มาคลายข้อสงสัย หัวข้อ: Re: กฏของ XHTML ครับ เริ่มหัวข้อโดย: smapan ที่ 11 สิงหาคม 2009, 23:26:34 ขอบคุณด้วยคนครับ :P
ไม่กระดิกเลย :P หัวข้อ: Re: กฏของ XHTML ครับ เริ่มหัวข้อโดย: jadngaw ที่ 14 สิงหาคม 2009, 18:01:45 ขอบคุณครับ ;D
|