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

WBOY
Release: 2023-09-16 15:29:15
forward
1287 people have browsed it

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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template