C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <link> tagHTML <link> tag is used to specify the relationship between the current document and external source. The <link> tag is commonly used to link the external Stylesheet for the current document, but it can also use with link site icons. It is placed on the head section of the document. Example<link rel="stylesheet" type="text/css" href=""> Following are some specifications about the HTML <link> tag
Example<!DOCTYPE html> <html> <head> <title>Link Tag</title> <link rel="stylesheet" type="text/css" href="htmlpages/css/link.css"> </head> <body> <h2>Example of Link Tag</h2> <p>This is paragraph which is styled with external style sheet. </p> </body> </html>
body{ background-color: #7ac5cd; text-align: center;} h2{ color: #006400;} p{ color: #cd5c5c; font-size: 25px; font-style: italic;} Output: Attribute:Tag-specific attributes:
Global attribute:The <link> tag supports the global attributes in HTML Event attribute:The <link > tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML Tags List
|