&l"/> &l">

Home  >  Article  >  Web Front-end  >  Set the relationship between the current document and the linked document in HTML

Set the relationship between the current document and the linked document in HTML

WBOY
WBOYforward
2023-09-16 15:29:151237browse

Set the relationship between the current document and the linked document in HTML

Use the rel attribute to view the relationship between the current document and the linked document. It works with , , HTML elements.

Example

You can try running the following code to implement the rel attribute. This example sets the CSS file -

<!DOCTYPE html>
<html>
   <head>
      <link rel = "stylesheet" href = "style.css">
   </head>
   <body>
      <h1>Heading</h1>
      <p>This is demo content.</p>
   </body>
</html>

The above is the detailed content of Set the relationship between the current document and the linked document in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete