162k views
13 votes
Observe the following output and write the complete HTML-CSS code to generate it:

Observe the following output and write the complete HTML-CSS code to generate it:-example-1
User Carmellose
by
6.5k points

1 Answer

14 votes

Answer:

HTML:

<ol start="3">

<li>English</li>

<li>Maths</li>

<li>Physics</li>

<li>Chemistry</li>

<li>Biology</li>

</ol>

CSS:

ol {

color: green;

font-family: Courier;

list-style-type: lower-roman;

border: 2px dotted black;

width: 200px;

}

li {

margin-left: 10px;

}

Step-by-step explanation:

The left margin on the li is not very clean, but it prevents the roman numbers from exceeding the border.

Observe the following output and write the complete HTML-CSS code to generate it:-example-1
User Fegoulart
by
5.9k points