Anchor and Image Tag in HTML | How to add Image and Link in HTML

Anchor and Image Tag in HTML | How to add Image and Link in HTML


anchor and image tag in html


Anchor and Image Tag in HTML:

Anchor Tag:

Anchor Tag in HTML is the pieces of text that is going to be made an clickable link that redirect us on to the another webpage/website by clicking on the created link via using <a>.....</a> tag. 

We use opening tag and closing tag for the anchor tag and to redirect the link, we put href (Hypertext Reference). Also we can set hypertext link as either open in the same page or in the new tab by using target attribute.

Image Tag:

Image (<img>) Tag in HTML is used to inset or add images to the webpage/website by using <img> tag. Also we can make the image as clickable linked image via anchor tag.

We use src to insert the image in the webpage, src means sources where we specify the path of the particular image that we want to add in the webpage and also we can give the alternate text to that image by using alt attribute.

Here we're taking an example for the anchor and image tag:

img tag in html with example - anchor tag in html with example


Short Code:





Output:

img anchor tag in html



Looking Forward:

 

For more details - Anchor and Image Tag in HTML | How to add Image and Link in HTML - Best Programming Videos on YouTube - EDUGYAN Channel



Post a Comment

0 Comments