Validation Errors for HTML 5

Validation errors

I get a crazy set of errors. I am using Bootstrap code and have not edited it. So why does this indicate an error?

A linkelement with an attribute sizesmust have an attribute relthat contains a value iconor value apple-touch-icon.

...

Bad value bannerfor attribute rolefor item nav.

To see the same live, go to https://validator.w3.org/nu and enter: www.iqtests4kids.com/

+4
source share
2 answers

HTML W3C (). rel=apple-touch-icon-precomposed , , HTML sizes:

sizes icon. link, rel, icon apple-touch-icon.

role=banner nav, ARIA HTML, nav , navigation.

, ARIA HTML :

- ARIA role aria-* , ARIA, .

, , , nav navigation.

, role=navigation nav, .

, ARIA HTML, nav role.

+6

, Validator :

<link rel="apple-touch-icon".....

<link rel="apple-touch-icon-precomposed"......

Validator , role="banner" "role=navigation":

<nav id="main-menu" ..... role="navigation">

, "" ( ), Validator :)

+3

Source: https://habr.com/ru/post/1665293/


All Articles