- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set the relationship between the current document and the linked document in HTML
Use the rel attribute to see the relationship between the current document and the linked document. It works for <a>, <area>, <link> HTML elements.
Example
You can try to run the following code to implement rel attribute. The example sets the CSS files −
<!DOCTYPE html> <html> <head> <link rel = "stylesheet" href = "style.css"> </head> <body> <h1>Heading</h1> <p>This is demo content.</p> </body> </html>
- Related Articles
- Set the language of the linked document in HTML
- How do we set what media/device the linked document is optimized for in HTML?
- Create HTML Document with Custom URL for the document in JavaScript
- How do we specify the target for where to open the linked document in HTML?
- Include information about the document in HTML
- Updating a MongoDB document and adding new keys only in the first document?
- Execute a script before the document is printed in HTML?
- Execute a script after the document is printed in HTML?
- What are the essential tags for an HTML Document?
- What is the basic minimal structure of HTML document?
- Set condition in MongoDB nested document?
- What are the most important tags for an HTML Document?
- How to use the tag to define HTML document title?
- How to include Modernizr in HTML document?
- Create editable content in an HTML document

Advertisements