خدمة مفيدة من موقع w3

كل ما يهم مطور المواقع ... لغات برمجة المواقع .. سكربتات .. مناقشات ..
مغلق
عبد المنعم
عضو مفيد جداً
مشاركات: 407
اشترك في: 28 أغسطس 2004, 13:13
مكان: المغرب

خدمة مفيدة من موقع w3

مشاركة بواسطة عبد المنعم »

السلام علكم
لاشك أن أغلبكم يعرف منظمة w3 للمعايير القياسية

هناك خدمة من المنظمة وهي تحليل صفحات الموقع ومعرفة الأخطاء حسب المعايير المتبعة من طرف المنظمة.
الأداة :
http://validator.w3.org/
تستطيع إما إدخال عنوان الصفحة في الحلق الأول :Validate by URL
أو تحميل الملف من جهازك في الحفل Validate by File Upload


مثال :
http://validator.w3.org/check?uri=www.da3ya.net
وطبعا صفحتي لا تعتمد الإصدار 4.01
This page is not Valid HTML 4.01 Transitional!

:twisted: :twisted:
يشير التحليل لوجود 6 أخطاء في الصفحة الألوى Errors: 6
وهي كالتالي:

كود: تحديد الكل

Line 1, column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>"

<HTML>

The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with the HTML 4.01 Transitional DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.

?

Line 6, column 14: an attribute value must be a literal unless it contains only name characters

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

?

Line 6, column 33: there is no attribute "LEFTMARGIN"

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

?

Line 6, column 45: there is no attribute "TOPMARGIN"

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

?

Line 6, column 59: there is no attribute "MARGINWIDTH"

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

?

Line 6, column 74: there is no attribute "MARGINHEIGHT"

...N=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>


طبعا يجب إصلاح الأخطاء وهكذا ...
إلى أن تصبح صفحات موقعك تعتمد المعايير القياسية
وشكرا :twisted:
عبد المنعم
عضو مفيد جداً
مشاركات: 407
اشترك في: 28 أغسطس 2004, 13:13
مكان: المغرب

مشاركة بواسطة عبد المنعم »

الظاهر أن الخدمة لم تعجبكم
ههههههههه :twisted:
مغلق