WebSite X5Help Center

 
James Becker
James Becker
User

What Is This Line Of Code About?  en

Автор: James Becker
Просмотрено 1718, Подписчики 1, Размещенный 57  
Тэги: code,imhidden

What is this line of code about?

<a class="imHidden" href="#imGoToCont" title="Skip the main menu">Go to content</a>

I find it in every page generated by X5

Размещено
3 Ответы - 1 Полезно
James Becker
James Becker
User
Автор

Anyone have a thought about this??

Читать больше
Размещено От James Becker
Incomedia
Claudio N.
Incomedia

Hello James,

That line of code is about your site's accessibility. Normally CSS hides it so it is not displayed by the browser and the visitor doesn't see it.

When a blind visitor (or someone with a general disabling illness) get on your site, his browser does not load CSS and parse directly the HTML code. In this way he get more links to navigate trough the page content. Wink

For more infos I suggest you this page: http://www.w3.org/WAI/

Читать больше
Размещено От Claudio N.
D. Reimann
D. Reimann
User

Hi James

I made pretty bad experience with this class name 'imHidden'.  This was introduced with V9.

The problem is following: The headers (h1, h2, h3) are equipped with this 'imHidden' class. Usually the text in the headers has a relation to the page. So far all OK. But Google seems to make a downgrading, when such a class name is used. That means the page related texts in the headers results in a negativ weighting of these important expressions.

This could be a real problem. Unfortunatelly Incomedia did not made any changes till now.

I made a simple work-around: after creating all the files, I renamed all 'imHidden' with something else (eg. 'imHead'). This works, but then you can't use the 'direct export to internet' function from WebSite. (this is very annoying!)

Читать больше
Размещено От D. Reimann