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

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

GoldenToy 24-05-09 14:33

שאלה| זה מסמך XHTML תקין?
 
HTML קוד:

<!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">
<head>
<title>...</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />
<meta http-equiv="content-type" content="text/html; charset=windows-1255" />
</head>
<body dir="rtl" lang="he" xml:lang="he">
<p>מסמך ה-XHTML הראשון שלי!</p>
<hr />
</body>
</html>

האם זה תקין? אני לא כל כך הבנתי איך מגדירים את השפה ובאיזה DOCTYPE צריך להשתמש... ;-0

O-B 24-05-09 14:44

http://validator.w3.org/#validate_by_input

GoldenToy 24-05-09 14:46

ציטוט:

נכתב במקור על ידי O-B (פרסם 716950)

תודה רבה! חשבתי שיש validator רק לכתובות אתרים...

אפשר לנעול!

GoldenToy 24-05-09 14:52

רגע... מה זה אומר (לא הבנתי כלום):
ציטוט:

Using Direct Input mode: UTF-8 character encoding assumed

Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.

If you notice a discrepancy in detected character encoding between the the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.

Mr.FSF 24-05-09 14:59

This document was successfully checked as XHTML 1.0 Transitional!
כל הכבוד :)

GoldenToy 24-05-09 15:07

ציטוט:

נכתב במקור על ידי Mr.FSF (פרסם 716959)
This document was successfully checked as XHTML 1.0 Transitional!
כל הכבוד :)

תודה. כבר בדקתי בעצמי.





יש לי שאלה: האם חובה להוסיף את ה-
HTML קוד:

lang="he" xml:lang="he"
?

O-B 24-05-09 16:44

לא..

ולבי השגיאה הוא מציע לעבוד עם UTF-8

0xfo7d 24-05-09 18:15

בקוד שהצגת יש 3 נקודות במקום הגדרה של קידוד מסויים....הוא מתריע על כך ועל הדרך מציע לעבוד עם UTF-8...אך אם תשתמש בקידוד אחר הוא לא יציג את ההערה הזו:)

GoldenToy 24-05-09 18:49

ציטוט:

נכתב במקור על ידי 0xfo7d (פרסם 717022)
בקוד שהצגת יש 3 נקודות במקום הגדרה של קידוד מסויים....הוא מתריע על כך ועל הדרך מציע לעבוד עם UTF-8...אך אם תשתמש בקידוד אחר הוא לא יציג את ההערה הזו:)

אההה חחחח בסדר... תודה רבה!


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

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