Scott Boston
Scott Boston

Reputation: 153460

Image in div is not show in Chrome but shows in IE

I have the following simple HTML code, the code runs correctly using the run snippet and in Internet Explorer. However, if I copy this code, save it to text.html and try to run it in Chrome the image doesn't appear.

What is the nature of this problem? And, how do I fix it?

<!DOCTYPE html>
<html>
<head>

</head>
<body>
<H1>This is Scott!</H1>
<div>
  <img src='http://mgecombanners.com/wp-content/uploads/2017/12/5KAWFvr_JanTV18_Red_728x90.jpg' border='0' />
</div>
</body>
</html>

Upvotes: 2

Views: 75

Answers (2)

Johannes
Johannes

Reputation: 67738

On an https website contents from an http website will not be loaded in all browsers, which is the case here (in the snippet on SO at least). (might also depend on personal browser settings)

Upvotes: 1

ReturnTable
ReturnTable

Reputation: 365

If you have AdBlocker enabled it's blocking the image probably as it contains word "banner". Image displays as intended on incognito window.

Upvotes: 2

Related Questions