Difference between link tags such as <a> & <link> in HTML?
Link Tags in HTML
343
20-Jul-2021
Anonymous User
04-Aug-2021Anchor tag is used as <a>...</a> in webpage. These are used to redirect the page to the other link after click on that.
OR
Link tag is used as <link>...</link> in webpage. And these are used to add the file to the particular document and this tag appends the entire content in that comtemporary HTML file.
Let's understand it with the help of an example :
Here, I am creating a stylesheet link tag and an anchor tag, In webpage stylesheet will use that content in my webpage but the anchor tag will work only after clicking on it.
Stylesheet File
body {margin-left: 30%;
margin-right: 30%
}
.d-flex {
display: flex;
}
.justify-content-center {
justify-content: center;
}
Hope this information will be helpful for you.
Happy Coding!