הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   מה אומרת השגיאה הזאת ? בבדיקת תקן (https://hosts.co.il/forums/showthread.php?t=64691)

Oribest 01-07-08 17:54

מה אומרת השגיאה הזאת ? בבדיקת תקן
 
document type does not allow element X here; missing one of Y start-tag

:/
אני מתכנת אתר בDIVים והשגיאה הזאת מופיעה לי כשאני בודק תקן ואני לא יודע מה לעשות.
עזרה?

DavidBD 01-07-08 18:24

תן פה את הקוד ואת השורה עם הבעיה

Oribest 01-07-08 18:45

ציטוט:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head>
<title>main</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<style type="text/css" media="screen">
/* <![CDATA[ */
@import url(screen.css);
/* ]]> */
</style>
</head>
<body style="background-color:#FFFFFF;">

<div id="Table_01">
<div id="main-03_">
<div id="right-13_">
<strong>
<div id="center-01_">
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
</div>
<div id="center-02_">
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
<br />
בלה בלה בלה
</div>



</strong>



</div>

</div>
</div>
</body>
</html>
זה הקוד..

זה ברור שזה לא הקוד המלא, אבל גם כאן יש את הבעיה.

וכשאני בודק אותו עם validator.w3.org
הוא עושה לי
ציטוט:

document type does not allow element X here; missing one of Y start-tag ✉
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>").

Line 19, column 21: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<div id="center-01_">Line 30, column 21: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<div id="center-02_">


אני יסביר את זה בערך מה מוצג בקוד

יש את הDIVים הראשונים שהם אחראים על חלקים באתר
3 דיווים שמחלקים את האתר חלק עליון
צד ימין
צד שמאל
בפנים כל אחד
והדגשתי את הבעיה בחלק התחתון של צד ימין.
שם יש תיבה שצריך הטקסט להיות רשום ככה :

בלה בלה בלה 1 בלה בלה בלה2
בלה בלה בלה3 בלה בלה בלה4

אני מקווה שהבנתם
ובגלל זה עשיתי 2 דיווים שכל אחד יהיה של עמודה שונה .. (center-02, center-01)

Daniel 01-07-08 19:02

נו באמת, היית חייב לצנזר ובמקום זה לעשות X ו-Y?

אי אפשר לשים DIV בתוך <strong>. תקרא, כתוב בדיוק מה הבעייה שם.

Oribest 01-07-08 19:10

חחחחחחחחחח יחביב אלביייייייי
ועודדדדדד חשבתי על זה...... חחח
תודה בכל מקרה נשמה !
אוהב אותך חח


כל הזמנים הם GMT +2. הזמן כעת הוא 15:52.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ