Anchor 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.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Anchor 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!