fix the error that is below

An img element must have an alt attribute, except under certain conditions.
<!DOCTYPE html>
<html>
<head>
<title>Troublesome HTML</title>
</head>
<body>
<div class="img-div">
<img src="example.gif" width="66" height="111">
</div>
<h1>HTML? Or HTM Oh-Well?!</h1>
<p>Here's some HTML that isn't quite up to snuff.</p>
<ol>
<li>Can you spot the bad markup? <strong>It can be tough to spot!</strong></li>
<li>But it's there...</li>
<li>Hiding.</li>
<li>Waiting to mess something up.</li>
</ol>
</body>
</html>

1 answer

To fix the error, you need to add the alt attribute to the img element. The alt attribute provides alternative text for the image, which is important for accessibility purposes. Here's the corrected code:

<!DOCTYPE html>
<html>
<head>
<title>Troublesome HTML</title>
</head>
<body>
<div class="img-div">
<img src="example.gif" width="66" height="111" alt="Example image">
</div>
<h1>HTML? Or HTM Oh-Well?!</h1>
<p>Here's some HTML that isn't quite up to snuff.</p>
<ol>
<li>Can you spot the bad markup? <strong>It can be tough to spot!</strong></li>
<li>But it's there...</li>
<li>Hiding.</li>
<li>Waiting to mess something up.</li>
</ol>
</body>
</html>
Similar Questions
  1. What is the most important source of error in the calorimeter experiment?I know few, but I don't know what is the most important
    1. answers icon 3 answers
  2. Which of the following statements about elements is false?A. An element is a pure substance. B. An element is made up of
    1. answers icon 3 answers
  3. Good Morning-Each of the following sentences has an agreement error in it. Match the correct type of agreement error to the
    1. answers icon 3 answers
    1. answers icon 1 answer
more similar questions