The Disabled attribute for <link> element in HTML is used to specify that the linked document is disabled. A disabled link is un-clickable and unusable. It is a boolean attribute.
Note: This attribute is not supported in html5.
Syntax:
<link disabled> ----- </link>
Example:
html
<!DOCTYPE html>
< html >
< head >
< link id = "linkid"
rel = "stylesheet"
type = "text/css"
href = "styles.css"
sizes = "16*16"
hreflang = "en-us" disabled>
</ head >
< body style = "text-align:center;" >
< h1 >GeeksForGeeks</ h1 >
< h2 >< link > disabled Attribute</ h2 >
</ body >
</ html >
|
Output:

Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
26 Jul, 2022
Like Article
Save Article