Hello, I am trying to get the 1s in the image attached to change them into a,b,and c respectively. Please correct my code where necessary. Document Question 3
Hello, I am trying to get the 1s in the image attached to change them into a,b,and c respectively. Please correct my code where necessary.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<ol>
<li>
Question 3
<ol>
<li><img src="exam.gif" alt="Image 1" width="200" height="150"></li>
<ol>
<li><img src="OIP.jpg" alt="Image 2" width="200" height="150"></li>
<ol>
<li><img src="Successful.jpg" alt="Image 3" width="200" height="150"></li>
</ol>
</ol>
</ol>
</li>
</ol>
</body>
</html>
SOLUTION-
This is an HTML code.
We have used <ol> and <li> for printing the image.
In HTML,
<ol>: This is the "ordered list" element. It's used to create a numbered list. The content inside an <ol> element is displayed with numbers (by default) to indicate the order of items.
<li>: This is the "list item" element. It's used within an <ol> or <ul> (unordered list) element to define individual items in the list. In your case, it's used within the <ol> elements to define the list items or list items with images.
Lowercase Letters:
To print a,b,c we need to set the type in <ol type="a">
Step by step
Solved in 3 steps with 1 images