1. Write html program to create an ordered list having names of two friends.
Add unordered list of
their hobbies under each name.
<!DOCTYPE html>
<html>
<head>
<title>Hobbies</title>
</head>
<body>
<ol>
<li>Rohit</li>
<ul type=circle>
<li>Dancing</li>
<li>Reading</li>
</ul>
<li>Virat</li>
<ul type=circle>
<li>Swimming</li>
<li>Sketching</li>
</ul>
</ol>
<body>
</html>
2. Write html program to create a list of 5 flowers in ordered list and list of 5 fruits in unordered list.
<!DOCTYPE html>
<html>
<head>
<title>Flowers and Fruits</title>
</head>
<body>
<h1 align=center> Flowers & Fruits</h1>
<h2>Flowers</h2>
<ol>
<li>Rose</li>
<li>Jasmine</li>
<li>Marogold</li>
<li>Orchid</li>
<li>Tulip</li>
</ol>
<h2>Fruits</h2>
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Gauva</li>
<li>Mango</li>
<li>Pineapple</li>
</ul>
<body>
</html>
3. Write html program to create registration form to accept name, mobile no. date of birth.
The form should have Register caption on the bottom to submit the data.
<!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h1 align=center> Registration Form</h1>
<form name=f1>
Enter Name:<input type="text" name="ename">
<br><br>
Enter Mobile No.:<input type="tel" name=t2 pattern="[0-9]{10}"><br><br>
Select Date of Birth:<input type="date" name=t3><br><br>
<input type="Submit" Name="b1" Value="Register">
</form>
<body>
</html>
4. Write html program to create registration form to accept name of the Employee , Email Id of
the Employee, Salary (maximum 40000). The data should be sent to the server.
<!DOCTYPE html>
<html>
<head>
<title>Employee Details</title>
</head>
<body>
<h1 align=center> Employee Details</h1>
<form name=f1>
Enter Name of Employee:<input type="text" name="ename">
<br><br>
Enter Email Id :<input type=“Email” required><br><br>
Enter Salary of Employee:<input type=“number” name= “t2” max=40000><br><br>
<input type="Submit" Name="b1" Value="Submit">
</form>
<body>
</html>