Computer Science, asked by aleenasara, 1 year ago

Write an HTML documents to print the following.
1. Animals
Cow
Cat
Lion
2. Colours
Red
Green
Blue

Answers

Answered by sikhi
12
<html>
<head><title>to print the given list</title>
</head>
<body bgcolor="cyan">
<ol>
<li>Animals</li>
Cow<br>
Cat<br>
Lion<br>
<li>Colours</li>
Red<br>
Green<br>
Blue</ol>


the output is attached in the image.
Attachments:
Answered by guruu99
0

Answer: Here is an example HTML document you can use to print the details:

Explanation: <!DOCTYPE html>

<html>

 <head>

   <title>Animals and Colors</title>

 </head>

 <body>

  <h2>Animals</h2>

   <ul>

     <li>Cow</li>

     <li>Cat</li>

     <li>Lion</li>

   </ul>

   <h2>Colors</h2>

   <ul>

     <li>Red</li>

     <li>Green</li>

     <li>Blue</li>

   </ul>

 </body>

</html>

The 'ul' element is used in this HTML document to create an unordered list of colors and animals. Each animal and color's list items are made using the ''li' element. The 'h2' element is also used to create headings for each list.

To learn about HTML document click the link below:

https://brainly.in/question/19672770

#SPJ2

Similar questions