HTML5 and the message "Unsupported browser"?

I browse our site using the outlooker HTML5 tool and try to improve its structure. Ive made sure that we only have one item, Ive added headings to untitled sections, etc.

We have a "Unsupported Browser" message that is contained in HTML but is hidden if your browser is supported. Is there a way to mark this so that screen readers and search engines will know to ignore it? It might be better to embed this using JavaScript if necessary, but this is not an option at this stage of the project.

+4
source share
1 answer

Interestingly, yes, there is a great way to do this. He knows a little the CSS attribute , which can be used as follows:

<span class="dontRead">Screen readers shouldn't read this</span> .dontRead { speak: none; } 

Literature:

Is there a way to write content that screen readers will ignore?

http://www.w3schools.com/cssreF/css_ref_aural.asp

0
source

All Articles