We will force a renewal of passwords in the coming weeks (More...)
Link types are automatically detected on client side by some Javascript, which will add the necessary class icon before the link. The intention is to inform the user about what he can expect will happen before he clicks on the link. Consistency and predictability enhance usability.
Here you see some examples:
The icons will only show up on the main content area - not in the left and right columns.
If you don't want the icon to show, then add class="link-plain"
to
the <a>
tag.
The code <a class="link-plain" href="http://water.europa.eu/document.pdf">PDF Document</a>
will show as PDF Document.
The Javascript looks from the end of the URL up to the last period to determine the file type.
That is not always correct, because if the document is stored in a database, there will typically
only be a query string such as docId=891199
. In this case, if you know it is a PDF file,
add a class to the <a>
tag.
The name of the class is link-
and the file extension. Example: link-doc.
Not all file extensions have icons, but the most common ones have.
Example: Fake PDF class. A class overrides the extension: RSS with XML extension.
Document last modified: 2019/01/11 . Content in this portal is modified daily by a community of providers.
Disclaimer | Privacy statement |
Copyright: