Anchor and Image Tag in HTML | How to add Image and Link 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:
Looking Forward:
https://t.co/pvLgaho9eH#howtoaddimagesandlinksinwebpage/website #html #css #imgtag #anchortag #htmltags #howtocreate #howto #howtoadd #howtocreateyourwebsite #website #webpage #webdevelopment #webdesigning
— EDUGYAN (@EDUGYAN1) May 23, 2020
0 Comments