Jacob Cafiero
Jacob Cafiero

Reputation: 145

two images in HTML one is loading and the other one is not

<div class="logos">
  <a href="http://twitter.com"> <img scr="twitter-logo.png"widht=50 alt="twitter logo"</a>
  <a href="http://facebook.com"> <img src="facebook-logo.png"width=50 alt="facebok logo"</a>
</div

the twitter logo is not working but the facebook one is. Ive tried everything i could think of. Please help!!!

Upvotes: 0

Views: 129

Answers (5)

Benjamin
Benjamin

Reputation: 1104

To prevent further issues like that in the future the W3C validator can be helpfull:

W3C Online Validation Tool

Upvotes: 1

Ilanus
Ilanus

Reputation: 6928

This should work, fixed your "widht" to "width" too :)

<div class="logos">
<a href="http://twitter.com"><img src="twitter-logo.png" width=50 alt="twitter logo"></a> 
<a href="http://facebook.com"><img src="facebook-logo.png" width=50 alt="facebok logo"></a> 
</div>

Upvotes: 0

Kamran
Kamran

Reputation: 111

You can try this code hopefully it will be working perfectly

<div class="logos">
  <a href="http://twitter.com"> <img src="twitter-logo.png"widht=50 alt="twitter logo"</a>
  <a href="http://facebook.com"> <img src="facebook-logo.png"width=50 alt="facebok logo"</a>
</div>

Upvotes: 0

Felix A J
Felix A J

Reputation: 6490

Clean up your code. widht and scr is wrong.

Closing div is missing '>'

Add quotes for the attribute values. add a space between each attributes. space missing after scr="twitter-logo.png"

Upvotes: 1

Mark Eriksson
Mark Eriksson

Reputation: 1475

It's because you misspelt src in your Twitter line

Upvotes: 12

Related Questions