Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> a.button, button { display: inline-block; padding: 20px 55px; margin: 20px 10px; line-height: 18px; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 0; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; background-color: #8ebf42; text-decoration: none; color: #ffffff; } a[disabled].button, button[disabled] { cursor: not-allowed; opacity: 0.4; pointer-events: none; -webkit-touch-callout: none; } a.button:active:not([disabled]), button:active:not([disabled]) { background-color: #cccccc; color: #2a2a2a; outline: 0; } </style> </head> <body> <h2>Désactiver le lien sur la page actuelle</h2> <a href="https://fr.w3docs.com/" disabled="disabled" class="button">Désactivé</a> <a href="https://fr.w3docs.com/" class="button">Cliquez ici</a> </body> </html>