Image does not load into HTML

Asked

Viewed 321 times

-1

<html>

<head>
<title>equipe setembro</title>
</head>

<body>
<b><p align=center><font face="verdana" size="7" color="#1C1C1C">Equipe Setembro</font></p>
<br>
<p align=center><font face="verdana" size=5 color="#FFD700"> Faça parte agora</font></p>
<p><img scr="C:\Users\anrocha\Desktop\setembroexperimente.png" width="800" height="600"></p>

</html>

I wonder why it does not load the image in the code above, I started the step by step correctly, but as I am beginner in the HTML course I am not able to locate the error.

  • 1

    What is this course that teaches how to write HTML as in 1993?! This type of code, with align=center, <font> etc has not been used for LONG. The problem may be your image path, use a web server (local, search by xampp), and serve the image with the HTTP protocol as you should on the web.

  • 1

    Inside the tag <img>, the property src is as scr. Behold plus

  • kkkk free course at Bradesco foundation

  • Alessandro, I don’t know what your goal is with this course. But I suggest you choose a more up-to-date course. If you do not want to spend, have several courses very good and free on the site Video Course

  • Yes, Carlos, thank you for the suggestion. I didn’t really know that the course was outdated, I’m right at the beginning of the course of ads, knowing the languages and everything. And I’ve always taken courses at the Bradesco foundation, in other areas. But I’m already studying algorithms with prof. Guanabara and I’ll see tbm HTML and CSS.

1 answer

0

Try not to use absolute paths for example: "C: Users anrocha Desktop septembertry.png" Use relative paths within your project folder.

And in your case in the img tag the property is src, you wrote scr :)

<img src="C:\Users\anrocha\Desktop\setembroexperimente.png" width="800" height="600">

I left an example for you to download and check: https://codesandbox.io/s/blissful-cartwright-fitm9

I hope I helped, big hug

  • I spent an hour looking at the code without seeing that kkkk thank you very much, now it worked !!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.