A link is on the text or image, as soon as you click on that, you will go on the second page. Whenever you move your cursor to a link, it gets converted to a clickable hand icon. Links are basically used to go from one page to another page. Links web is the world's roads.
HTML Link
Anchor Tag
<a> Tag is used to create link in HTML. This is called anchor tag. This tag has the most basic attributes href and target. These two attributes are described below.href
By this attribute, you define the address of the page that you want to show when the link is clicked.
href = "Page-Address(PATH or URL)"
target
target - With this attribute, you define the frame where you want to show the page. This attribute is optional. If you do not define it then the page is open in new tab. This attribute has some predefined values that you can use.
target = "frame-Name"
1. _blank - When you define this value, your webpage is open in a new tab or window.
2. _self - When you define this value, your webpage will open in the same tab or frame that was clicked on the link.
3. _parent - This value opens the webpage in the parent frame.
4. _top - This value opens in the web page full document.
custom frame - You can also define any frame of yourself. By doing so, the webpage will open in the same way.
Creating Link in HTML
As I told you to use the <a> tag to create a link by HTML. Here's how to tell you how to use it. Let's look at the general structure of this tag.
<a href="address-of-webpage"> link-Name </a>
Below is a complete example of creating links in HTML.
Configuring Link
Links can also be configured according to your page. As you can apply, whenever you move the mouse to a link, its color becomes green and reducing the mouse becomes red.
All this can be done by the style tag. For this, you define by putting condition colon with a. These are being given below. Examples of these can be seen in tutorials with CSS.
Condition
|
Explanation
|
a: link
|
This condition shows a link on first-time web page.
|
a: visited
|
In this condition, the link has already been visited.
|
a: hover
|
In this condition, the cursor is moved to the link.
|
a: active
|
When you click on a link, that link is active.
|
Hopefully, this "HTML Tutorial - Link” would be helpful for you. If it's so please help your friends and other bloggers to share this post on social media. If you have any question related to the post, please comment on the comment box and also follow this website for more information about the blogging and SEO tips.

0 Comments:
Post a Comment
Thank you for reading this post. Please do not enter any spam link in the comment box.