In the last article we learned about: Quotations Comments in HTML. Now in this post, we are going to see HTML links in detail. We know that we can use links in HTML to navigate from one page to another. When we hover over element containing a link, it generally changes to blue and mouse changes to hand icon in the browser. We all have seen examples of links in previous posts where we used following things: Enclosing text to be used as link in <a> and </a> tags Giving href attribute in <a> tag and setting its value to the desired link In all the examples we used the text links to other webpages that are sites like google.com or say, facebook.com, but it is interesting to know that you can enclose other HTML elements such as images inside link tags to use images as the link to other pages. To do this, first we will create a image in HTML using <img> tag and then we will enclose it within <a> and </a> tags with href attribute.
The blog to help programmers to learn, experiment and understand new concepts.