<!DOCTYPE HTML> <html> <head> <title>HTML Link Example</title> <link rel="stylesheet" type="text/css" href="link_example.css"> </head> <body> <p>This text is styled using an external style sheet. Try changing/removing the 'link' tag to see the difference it makes to the way the text is displayed.</p> </body> </html>
The above example demonstrates usage of the
<link> element represents link metadata. It allows authors to link their document to other resources, such as an external style sheet. These resources are typically used by the browser for the purposes of rendering the HTML document.