Linking one page to other in HTML using anchor tag :-
• Hyperlink in html used to connect one website to another. (When we click on link a new link opens is known as hyperlink).
• Hyperlinks in html created by anchor tag (<a>) and href attribute define path of particular link on web or a url.
• By default color of hyperlink is blue before visiting link and turn purple after visiting link.
• HTML link structure is
<a href= “url"> content </a>
• Anchor tag also has attribute target, which is used to open link on certain target. target attribute has following values with syntax target="_value"
Note: Top value of target attribute opens link in a top of the window.
Comments
Post a Comment