HTML Hyperlinks
Hyperlink is a link to click the link go to the another page or Windows.
Link is a text, Image, Button etc.
Syntax:-
<a href="url">Link Text</a>
Only Read Link Text to page or document.
Example:- Click Here
Use an Image as a Link
The <img> tag use between <a> to </a> tag.
Example:-
<html>
<body>
<h2>Image as a Link</h2>
<p>Click Image</p>
<a href="https://htmleasystudy.blogspot.com"><img src="E:/Blogger/HTML.png" alt="HTML Language Study" style="width:50px;height:50px;"></a>
</body>
</html>
Output:-
Button as a Link
Link use in Button tag.
Example:-
<html>
<body>
<h2>Button as a Links</h2>
<button onclick="document.location='https://htmleasystudy.blogspot.com' ">HTML Language Study</button>
</body>
</html>
Output:-
0 Comments
Post a Comment
Please do not enter any spam in the comment box.