Slip 10 - B) Write HTML code which generates the following output and display each element of list in different size, color & font. Use inline CSS to format the list. 1. DYP • Courses BCS BCA 2. Indira • Courses BCA MCs 3. ATSS • Courses BBA BCS

Solution:

<html>

<head>

<style>

body

{

background-image: url("1.jpg");

}

ol{color:red;}

ul{color:blue;}

</style>

</head>

<body>

<ol type=1>

<li>DYP</li>

<ul type = "disc">

<li>COURSES</li>

<ul type = "square">

<li>BCS</li>

<li>BCA</li>

</ul>

</ul>

<li>Indira</li>

<ul type = "disc">

<li>COURSES</li>

<ul type = "square">

<li>BCA</li>

<li>MCS</li>

</ul>

</ul>          

 </ol>

</body>

</html>

Post a Comment

0 Comments