Web Programming - WPS Office
Web Programming - WPS Office
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Student Form</title>
<style>
body {
background-color: #f4f4f4;
margin: 0;
padding: 0;
.container {
max-width: 400px;
background-color: #fff;
padding: 20px;
border-radius: 5px;
.form-group {
margin-bottom: 20px;
}
label {
font-weight: bold;
display: block;
margin-bottom: 5px;
width: 100%;
padding: 10px;
border-radius: 3px;
input[type="submit"] {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 3px;
cursor: pointer;
input[type="submit"]:hover {
background-color: #0056b3;
</style>
</head>
<body>
<div class="container">
<h2>Student Form</h2>
<div class="form-group">
<label for="name">Name:</label>
</div>
<div class="form-group">
<label for="email">Email:</label>
</div>
<div class="form-group">
<label for="password">Password:</label>
</div>
</form>
</div>
</body>
</html>
2. image as web link
<a href="https://www.example.com">
<img src="https://www.example.com/image.jpg"
alt="Description of the image">
</a>
3. Web link in same web page
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
5.ORDER LIST
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
</body>
</html>
7. LOGIN PAGE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login Page</title>
<style>
body {
background-color: #f4f4f4;
.container {
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
h2 {
text-align: center;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
box-sizing: border-box;
input[type="submit"] {
width: 100%;
background-color: #4caf50;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
input[type="submit"]:hover {
background-color: #45a049;
</style>
</head>
<body>
<div class="container">
<h2>Login</h2>
<label for="username">Username</label>
<label for="password">Password</label>
</form>
</div>
</body>
</html>
8. DESIGN THE FORM WITH ALL INPUT
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login Form</title>
<style>
body {
background-color: #f4f4f4;
.container {
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
h2 {
text-align: center;
label {
display: block;
margin-bottom: 5px;
width: 100%;
padding: 10px;
border-radius: 5px;
box-sizing: border-box;
input[type="submit"] {
width: 100%;
background-color: #4caf50;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
input[type="submit"]:hover {
background-color: #45a049;
</style>
</head>
<body>
<div class="container">
<h2>Login</h2>
<label for="username">Username</label>
<label for="password">Password</label>
<label for="name">Name</label>
<label for="email">Email</label>
</form>
</div>
</body>
</html>
9. FRAMES
<!DOCTYPE html>
<html>
<head>
<title>Frames Example</title>
</head>
<frameset cols="25%,75%">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</html>
13.STUDENT INFORMATION (css)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Student Information</title>
</head>
<body>
<div class="student-info">
<h2>Student Information</h2>
<div class="student">
<div class="student-details">
<p><strong>Age:</strong> 20</p>
<p><strong>Grade:</strong> 11</p>
</div>
<div class="student-photo">
</div>
</div>
</body>
</html>