Images and links in HTML
So hello friends let's continue the our series of HTML tell how to . Now I'm gonna or my topic is how to add images or links to your website . With the help of <img src=" " alt= " "> you can simply add images . But in src=""
You have to specify the path of image that you have . It means if your image is in the folder named img then you can add path like this src="/img/image.jpg" you can add different types of image files like jpg, png, webp, etc. After that alt=" " alternative for if image doesn't loads then throw the error message . Use of this is so simple as given following alt="Error img loading"
and anchor tag <a href=" "> is used to add links . So let's take a look at some code as given following .
As you can see it use of img tag now take a look at the result . In href attribute you can also add link of image . In alt attribute you can error message if image doesn't loads.
In <a> tag you can add links in href attribute you can add links like google.com
to load Google . As shown in the result .
Here image is loaded successfully and links are at the bottom image . So if your cleared the concept well . So I hope you understood it well . If you have any problems then ask me in comment section please . If these tutorials are useful then please share your friends .

