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

15th Dec 2019, 3:19 PM
Yogeshwaran
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.
17th Dec 2019, 1:24 PM
saurabh s
saurabh s - avatar
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
15th Dec 2019, 3:32 PM
Anurag
Anurag - avatar
0
Bro but in sololearn it doesn't work why?
16th Dec 2019, 9:37 AM
Yogeshwaran
0
Share the code
16th Dec 2019, 9:38 AM
Anurag
Anurag - avatar
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="pic_trulli.jpg"alt="building"/> </body> </html>
16th Dec 2019, 9:41 AM
Yogeshwaran
0
Bro
16th Dec 2019, 9:41 AM
Yogeshwaran
0
Isn't this code work or not bro?
16th Dec 2019, 9:42 AM
Yogeshwaran
0
Code is fine. It isn't working because sololearn don't have the image pic_trulli in that directory.
16th Dec 2019, 9:44 AM
Anurag
Anurag - avatar
0
Mk bro.i don't know what is the use of alt
16th Dec 2019, 9:45 AM
Yogeshwaran
0
And also tell why the Google show error when I search image address on it
16th Dec 2019, 9:46 AM
Yogeshwaran
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
16th Dec 2019, 9:47 AM
Anurag
Anurag - avatar
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
16th Dec 2019, 9:50 AM
Yogeshwaran
0
Just tap and hold an image or right on the image open image in new tab. And copy that link address
16th Dec 2019, 9:52 AM
Anurag
Anurag - avatar
0
Mm thanks bro
16th Dec 2019, 9:53 AM
Yogeshwaran
0
copy the image link address and it should show the image
16th Dec 2019, 10:21 PM
Kerbal Chris
Kerbal Chris - avatar
0
Here is a code where I used an online image https://code.sololearn.com/W2jT9jed5UuS/?ref=app
17th Dec 2019, 3:44 AM
Rora