Валидация HTML и CSS(найдено 3 ошибки) нужна помощь (коды вставлял правильно)

(Ответов: 8, Просмотров: 3077)
  1. Banned
    • Регистрация: 12.08.2011
    • Сообщений: 510
    • Репутация: 12
    • Webmoney BL: ?
    Здравствуйте!
    у меня на сайте найдено 6ошибок CSS. Как их исправить?
    63 #header h1 Свойство text-shadow не существует в CSS2.1, но существует в [css2, css3] : #19242b 1px 1px 1px
    605 .wp-caption Свойство -moz-border-radius не существует : 3px
    607 .wp-caption Свойство -khtml-border-radius не существует : 3px
    609 .wp-caption Свойство -webkit-border-radius не существует : 3px
    611 .wp-caption Свойство border-radius не существует в CSS2.1, но существует в [css3] : 3px
    URI : http://seo-nayka.ru
    5 .sharepost a Ошибка значения : color transparent не является значением color : transparent
    За ранее огромное спасибо!!!
    • 0
  2. Banned
    • Регистрация: 12.08.2011
    • Сообщений: 510
    • Репутация: 12
    • Webmoney BL: ?
    Здравствуйте!
    у меня на сайте найдено 3 ошибкb HTML. Как их исправить?

    # Line 354, Column 80: there is no attribute "role"

    …dget_search"><h3>Поиск</h3><form role="search" method="get" id="searchform" ac…



    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.
    # Error Line 354, Column 106: ID "searchform" already defined

    …><form role="search" method="get" id="searchform" action="http://seo-nayka.ru/…



    An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
    # Info Line 334, Column 16: ID "searchform" first defined here

    <form id="searchform" action="http://seo-nayka.ru/" method="get">

    # Error Line 376, Column 8: there is no attribute "target"

    target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/10693780/3_1_F…



    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.

    За ранее огромное спасибо!!!
    • 0
  3. Software Engineer Аватар для Zvеr
    • Регистрация: 07.02.2010
    • Сообщений: 603
    • Репутация: 228
    • Webmoney BL: ?
    Зачем создавать 2 темы? объединил в одну.
    На счет HTML, так все же ясно написано, атрибута role не существует в спецификации, далее ID searchform встречается более одного раза на странице(ID может встречаться только 1 раз). Далее ругается что не существует атрибута target для ссылки(тег а), тут все зависит от доктайпа документа, следовательно его типа, в некоторых для ссылки этот атрибут существует, для некоторых нет(Вроде для Strict).

    На счет CSS, думаю, не стоит париться.
    • 0
  4. Студент Аватар для AlligatorUA
    • Регистрация: 27.11.2011
    • Сообщений: 33
    • Репутация: 1
    • Webmoney BL: ?
    Не уверен но попробуйте в стиле
    .wp-caption {
    border : 1px solid #ddd;
    text-align : center;
    background-color : #f3f3f3;
    padding-top : 4px;
    margin : 10px;
    }
    .wp-caption img {
    margin : 0;
    padding : 0;
    border : 0 none;
    }
    .wp-caption p.wp-caption-text {
    font-size : 11px;
    line-height : 17px;
    padding : 0 4px 5px;
    margin : 0;
    }
    • 1

    Спасибо сказали:

    sasha0808(27.11.2011),
  5. Banned
    • Регистрация: 12.08.2011
    • Сообщений: 510
    • Репутация: 12
    • Webmoney BL: ?
    AlligatorUA, спасибо, попробую.

    ---------- Сообщение добавлено 13:06 ---------- Предыдущее 12:58 ----------

    Спасибо!
    Теперь в CSS стало 2 ошибки:
    63 #header h1 Свойство text-shadow не существует в CSS2.1, но существует в [css2, css3] : #19242b 1px 1px 1px
    5 .sharepost a Ошибка значения : color transparent не является значением color : transparent
    • 0
  6. Super Moderator Аватар для staurus
    • Регистрация: 12.06.2009
    • Сообщений: 615
    • Репутация: 888
    • Webmoney BL: ?
    А не проще тебе все что не проходит валидацию сделать импортом на другой css. он не будет учитыватся в проверке но будет загружаться на сайте
    • 0
  7. Banned
    • Регистрация: 12.08.2011
    • Сообщений: 510
    • Репутация: 12
    • Webmoney BL: ?
    staurus, если бы знать еще как!
    • 0
  8. Super Moderator Аватар для staurus
    • Регистрация: 12.06.2009
    • Сообщений: 615
    • Репутация: 888
    • Webmoney BL: ?
    @import url('/css/typography.css');
    @import url('/css/layout.css');
    @import url('/css/color.css');
    • 0
  9. Banned
    • Регистрация: 12.08.2011
    • Сообщений: 510
    • Репутация: 12
    • Webmoney BL: ?
    staurus, импорт скорее всего не нужен будет.
    AlligatorUA, мне очень сильно помог (за что ему большое спасибо!!!) и сейчас осталась 1 ошибка CSS и 3 HTML ошибки .
    • 0

Похожие темы

Темы Раздел Ответов Последний пост
Валидация CSS (найдено 6 ошибок) нужна помощь
Web программирование 0 27.11.2011 14:03
Нужно создать карту сайта в формате .html. Нужна помощь!
Вопросы от новичков 7 09.08.2011 23:27
Нужна помощь
Web программирование 5 30.12.2010 05:45
Нужна помощь в ЧПУ!
Web программирование 1 05.12.2010 05:27
Нужна помощь.
Софт, скрипты, сервисы 4 11.02.2010 14:30

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры