رفتن به مطلب

مشكلات و سوالات رفع ارورهاي قالب در W3C


Saeed Fard

پست های پیشنهاد شده

این دیگه آخریشه <_<


<style type="text/css">
span a{ font-family:Tahoma; font-size:12px; text-shadow:0.5px 0.5px #aab0a8; text-decoration:none; } span a:hover{ text-shadow:2px 2px 10px #000000; }
</style>

خوب من اینرا توی فوترم استفاده میکنم و ارورش:

  • Line 382, column 34: Element style not allowed as child of element p in this context. (Suppressing further errors from this subtree.)
    <style type="text/css">

لینک به ارسال

این دیگه آخریشه <_<


<style type="text/css">
span a{ font-family:Tahoma; font-size:12px; text-shadow:0.5px 0.5px #aab0a8; text-decoration:none; } span a:hover{ text-shadow:2px 2px 10px #000000; }
</style>

خوب من اینرا توی فوترم استفاده میکنم و ارورش:

شما دارید از تگ style در تگ p استفاده میکنید

تگ استایل باید داخل تگ body یا head باشه

  • امتیاز 2
لینک به ارسال

This document was successfully checked as HTML5!

ایول به خودم و بچه های انجمن هرچی ارور بود را نفله کردیم :lol:

ممنون از دوستانی که مرا یاری کردند :wub:

حالا دیگه وقتشه برم سراغ برطرف کردن css پوسته :) .

باتشکر

لینک به ارسال


<div class="navigation">
<!-- start: nav_bit_active -->
<span class="active"><div class="Yekan">مرجع وبلاگ نویسان</div></span>
<!-- end: nav_bit_active -->

document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<span class="active"><div class="Yekan">مرجع وبلاگ نویسان</div></span>

خوب این ارور را چطوری باید برطرف کنم؟

لینک به ارسال


<div class="navigation">
<!-- start: nav_bit_active -->
<span class="active"><div class="Yekan">مرجع وبلاگ نویسان</div></span>
<!-- end: nav_bit_active -->

خوب این ارور را چطوری باید برطرف کنم؟

مانند خطای قبلی

  • امتیاز 2
لینک به ارسال

این 3 تا رو دیگه نمی دونم چیکار باید کرد؟

اساتید یه نگاه بندازن!


http://validator.w3.org/check?uri=http%3A%2F%2Fbia2bebar.ir%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3

لینک به ارسال

این 3 تا رو دیگه نمی دونم چیکار باید کرد؟

اساتید یه نگاه بندازن!


http://validator.w3.org/check?uri=http%3A%2F%2Fbia2bebar.ir%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3

کدوم 3 تا

خطا را همین جا قرار دهید

  • امتیاز 1
لینک به ارسال

کدوم 3 تا

خطا را همین جا قرار دهید


Line 9, Column 197: Bad value meta for attribute name on element meta: Keyword meta is not registered.
…رپ,دانلود,آهنگ,اس ام اس,تفریحی,وردپرس,قالب رایگان,گالری عکس,مدل لباس,برنامه" />
Syntax of metadata name:
A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.


Line 135, Column 69: Attribute xmlns:v not allowed here.
…s:v="http://rdf.data-vocabulary.org/#"><span typeof="v:Breadcrumb"><span class…


Line 443, Column 136: & did not start a character reference. (& probably should have been escaped as &.)
…p://neginkala.co/Detail.aspx?GC=nk1166&s=39588"><img src="http://bia2bebar.ir/…

البته اینم هست که نتونستم با css جایگزین کنم:


Error Line 136, Column 20: The align attribute on the div element is obsolete. Use CSS instead.
<div align="center">

لینک به ارسال

1- متایی که استفاده کردید اصلا استاندارد نیست

2- خاصیتی که بصورت v: تعرفی شده نباید اونجا قرار داده بشه

3- کاراکترهای ویژه باید انکد بشن و نباید بصورت مستقیم قرار بگیرن

4- چرا؟

  • امتیاز 1
لینک به ارسال

1- متایی که استفاده کردید اصلا استاندارد نیست

2- خاصیتی که بصورت v: تعرفی شده نباید اونجا قرار داده بشه

3- کاراکترهای ویژه باید انکد بشن و نباید بصورت مستقیم قرار بگیرن

4- چرا؟

مرسی مرتضی جان

1- پس حذفش کنم؟

2- کجا باید قرار بدم؟

3- بی زحمن انکود & چیه؟

4 - طوریه که بعد از بادی شروع میشه و دقیقا قبل از <body/> بسته میشه و کل محتوی بدنه رو میاره وسط صفحه، هر کدی با css امتحان کردم نتونستم درستش کنم!

لینک به ارسال

1- اگر خودتون قرار دادید حذفش کنید

2- اصلا برای چی هست؟ اگر لازم ندارید حذفش کنید

3- &

4- باید اندازه پهنا داشته باشه تا با margin : 0 auto وسط بیاد

  • امتیاز 1
لینک به ارسال

1- اگر خودتون قرار دادید حذفش کنید

2- اصلا برای چی هست؟ اگر لازم ندارید حذفش کنید

3- &

4- باید اندازه پهنا داشته باشه تا با margin : 0 auto وسط بیاد

مرسی مرتضی جان

2- برای افزونه ی yoast_breadcrumb چیکارش کنم؟

4- قبلا خواستم درستش کنم ولی نشد ! بیخیال این یکی میشم فعلا!!!

لینک به ارسال
  • 2 هفته بعد...


#pagenumbers li ,#pagenumbers li.space:hover ,#pagenumbers li.page_info:hover{float:right;display:block;padding:1px 5px;margin:0 4px;border:1px solid #b7b7b7;-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#f1f1f1');background:gradient(linear, left top, left bottom, from(#dfdfdf), to(#f1f1f1));background:-moz-linear-gradient(top, #dfdfdf, #f1f1f1);color:#000;}

دوستان این کد css چه مشکلاتی داره؟

آخه توی w3c بیشتر ارور ها برای این بودش ، از جمله:

attempt to find a semi-colon before the property name. add it

Property progid doesn't exist : DXImageTransform

Parse Error DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#f1f1f1');

Parse Error [:#000;} #pagenumbers li:hover]

attempt to find a semi-colon before the property name. add it

Property progid doesn't exist : DXImageTransform

Parse Error DXImageTransform.Microsoft.gradient(startColorstr='#8ecee2', endColorstr='#2babd4');

Unknown pseudo-element or pseudo-class :-webkit-gradient

لینک به ارسال

بخشی از بخشهای کد استاندارد نیست. مثل DXImageTransform.Microsoft.gradient

  • امتیاز 1
لینک به ارسال
  • 1 ماه بعد...

سلام

واسه من این سه تا ارور رو میده:


there is no attribute "prefix"
<meta prefix="og: http://ogp.me/ns#" property="og:type" content="blog" />

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


there is no attribute "property"
<meta prefix="og: http://ogp.me/ns#" property="og:type" content="blog" />

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


there is no attribute "role"
<form role="search" method="get" id="searchform" action="http://why-how.ir/">

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

لینک به ارسال

دو مورد اول به جهت استفاده از تگ های اوپن گراف هست که استاندارد نیستن ولی مشکلی نیست

در مورد سوم هم role="search" رو حذف کنید مشکل حل میشه

لینک به ارسال
  • 4 هفته بعد...

سلام . من تا جای ممکن ارور ها رو از حدود صد و خورده ای ارور به این تعدادی مه میبینید رسوندم ولی راه حلی برای این ارور ها پیدا نکردم . ممنون میشم راهنمایی کنید

http://validator.w3.org/check?uri=http%3A%2F%2Flovelysms.ir%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

لینک به ارسال

خطای اول بخاطر جاوااسکریپت هست و مشکل خاصی نیست ولی میتونی بجای اون کد از placeholder استفاده کنید

دومی هم باید alt برای img یا اون المان استفاده کنید

برای a نباید از خاصیت category استفاده کنید

  • امتیاز 1
لینک به ارسال

سلام

این دو تا ارور تو یه گروه هستن:


Error Line 1, Column 33203: value of attribute "id" invalid: "1" cannot start a name
…><ul class="widget-container"><li id="1001" class="widget jarchive_widget"><h3…
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.


Error Line 1, Column 33761: value of attribute "id" invalid: "1" cannot start a name
…><ul class="widget-container"><li id="1000" class="widget mps_calendar_widget"…
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

ممنون

لینک به ارسال

ممنون

این هم یه ارور:

document type does not allow element "script" here

کدش هم اینه:

<script language='[url=""]javascript[/url]' type='[url=""]text/javascript[/url]' src='alamooti.ir'></script>

ویرایش شده توسط np.1400
لینک به ارسال

با سلام و عرض خسته نباشید به تک تک دوستان.

من با تگ های گوگل در سایتم واقعا مشکل دارم، تنها ایراداتی که ولیدیتور به قالب من میگیره همین شناسایی نشدن تگ های گوگل!

آیا راهی برای دور زدن یا رفع این مشکل وجود داره؟!؟!؟

لینک به ارسال

ممنون

این هم یه ارور:

document type does not allow element "script" here

کدش هم اینه:

<script language='[url=""]javascript[/url]' type='[url=""]text/javascript[/url]' src='alamooti.ir'></script>

جایی که کد رو قرار دادید اشتباه هست

با سلام و عرض خسته نباشید به تک تک دوستان.

من با تگ های گوگل در سایتم واقعا مشکل دارم، تنها ایراداتی که ولیدیتور به قالب من میگیره همین شناسایی نشدن تگ های گوگل!

آیا راهی برای دور زدن یا رفع این مشکل وجود داره؟!؟!؟

اگر استاندارد نیستن زیاد به این تکته توجه نکنید!

  • امتیاز 2
لینک به ارسال
  • asadiy4n این مورد را قفل کرد موضوع
مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...