GIT 2023-2024 Q-6 HTML

The following diagram shows a browser display of a web page . Write the required HTML code to display the information on the web browser display. State clearly your assumptions, if any.

Assumption: Use <h1> for the main title, <h2> for animal names, <p> for descriptions, and <ul> for the bulleted lists.

HTML

<html>
<body>
  <h1>Animals</h1>
  
  <h2>Dog</h2>
  <p>Dogs are domesticated mammals...</p>
  <ul>
    <li>Family: Canidae</li>
    <li>Lifespan: 10-13 years</li>
    <li>Diet: Omnivore</li>
  </ul>

  <h2>Cat</h2>
  <p>Cats are small, carnivorous mammals...</p>
  <ul>
    <li>Family: Felidae</li>
    <li>Lifespan: 12-15 years</li>
    <li>Diet: Carnivore</li>
  </ul>

  <h2>Elephant</h2>
  <p>Elephants are large mammals...</p>
  <ul>
    <li>Family: Elephantidae</li>
    <li>Lifespan: 60-70 years</li>
    <li>Diet: Herbivore</li>
  </ul>
</body>
</html>

About Anoof Sir

Check Also

Google Bard now supports 40 languages including Tamil

இனி தமிழ் உட்பட நாற்பது உலக மொழிகளில் பார்டில் கேள்விகள் கேட்கலாம் பார்ட் இப்போது இந்தி, தமிழ், தெலுங்கு, பெங்காலி, …

Leave a Reply

Your email address will not be published. Required fields are marked *