Write A Html Code To Display Names Of Two Animals In Ordered List And Two Flowers In Unordered List

Introduction :

Nature's vibrant diversity calls for a canvas where words and visuals intertwine. With HTML's brushstrokes, we'll create a tapestry where creatures and blooms dance in harmony. Prepare to witness the interplay of ordered and unordered lists, showcasing nature's wonders in a digital garden.

 

HTML Code:

HTML
<!DOCTYPE html>
<html>
<head>
<title>Animals and Flowers</title>
</head>
<body>

<h2>Animals in the Wild</h2>
<ol>
  <li><img src="tiger.jpg" alt="Tiger"> Tiger</li>
  <li><img src="dolphin.jpg" alt="Dolphin"> Dolphin</li>
</ol>

<h2>Floral Splendor</h2>
<ul>
  <li><img src="rose.jpg" alt="Rose"> Rose</li>
  <li><img src="sunflower.jpg" alt="Sunflower"> Sunflower</li>
</ul>

</body>
</html>

Explanation:

  • <ol> creates an ordered list, numbering items sequentially.
  • <li> defines each item within the ordered list.
  • <ul> creates an unordered list, typically using bullets.
  • <img> tags embed images, visually enhancing the lists.
  • src attribute specifies the image path.
  • alt attribute provides alternative text for accessibility.

 

Applications:

  • Educational websites: List animals or plants with images for visual learning.
  • Nature-themed blogs or articles: Showcase flora and fauna in engaging formats.
  • Interactive quizzes or games: Present lists for identification or matching.
  • Shopping websites: Display product categories and items.
  • Personal websites: Share your favorite animals or flowers with visitors.

 

Conclusion:

HTML's list elements paint a vibrant landscape where nature's wonders unfold in perfect order and delightful spontaneity. Whether you're crafting educational resources, showcasing nature's beauty, or organizing information in a visually appealing way, embrace the interplay of ordered and unordered lists to create engaging and informative web experiences.

 


Post a Comment

0 Comments