0
In html how to insert a image of google logo or any logo.And also tell a methods to insert a image from any websites.
Image
16 Respostas
0
First of all, if the image is saved in your files then only you can use the name of the images but in solo learn you don't get to save your files hence you are not seeing the image but you will see that image in your own browser if its save on your computer. So to give an image which is available online gives the complete URL of the image.
0
Use the <img> tag like this:
<imgĀ src="pic_trulli.jpg">
Or you can refer here:
https://www.w3schools.com/html/html_images.asp
0
Bro but in sololearn it doesn't work why?
0
Share the code
0
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<img src="pic_trulli.jpg"alt="building"/>
</body>
</html>
0
Bro
0
Isn't this code work or not bro?
0
Code is fine. It isn't working because sololearn don't have the image pic_trulli in that directory.
0
Mk bro.i don't know what is the use of alt
0
And also tell why the Google show error when I search image address on it
0
If the image is not found then alt or alternative text will be loaded.
You can try putting a link instead of image name like this.
https://code.sololearn.com/Wminyh6Yfz4x/?ref=app
0
Bro how do create this web address "https://miro.medium.com/max/4800/1*az6XX85uxk3O9AFrEPXIqA.png" plss give me a tips to load img from other websites
0
Just tap and hold an image or right on the image open image in new tab. And copy that link address
0
Mm thanks bro
0
copy the image link address and it should show the image
0
Here is a code where I used an online image
https://code.sololearn.com/W2jT9jed5UuS/?ref=app