Practical 1: Basic HTML Page
Aim: To create a simple HTML web page.
Code:
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to HTML</h1>
<p>This is my first HTML practical file.</p>
</body>
</html>
Practical 2: Text Formatting
Aim: To demonstrate basic text formatting tags in HTML.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting</title>
</head>
<body>
<b>Bold</b>
<i>Italic</i>
<u>Underline</u>
<strong>Strong</strong>
</body>
</html>
Practical 3: Lists
Aim: To create ordered and unordered lists.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Lists</title>
</head>
<body>
<ol>
<li>HTML</li>
<li>CSS</li>
</ol>
<ul>
<li>Pen</li>
<li>Pencil</li>
</ul>
</body>
</html>
Practical 4: Table
Aim: To create a table in HTML.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Table</title>
</head>
<body>
<table border="1">
<tr><th>Name</th><th>Marks</th></tr>
<tr><td>Rahul</td><td>85</td></tr>
</table>
</body>
</html>
Practical 5: Form
Aim: To create a simple HTML form.
Code:
<!DOCTYPE html>
<html>
<head>
<title>Form</title>
</head>
<body>
<form>
Name: <input type="text">
<input type="submit">
</form>
</body>
</html>