0% found this document useful (0 votes)
6 views5 pages

HTML Basics: Page, Formatting, Lists, Table, Form

The document outlines five practical exercises for creating basic HTML web pages. Each practical includes an aim and corresponding HTML code for tasks such as creating a simple page, text formatting, lists, tables, and forms. These exercises serve as foundational learning for HTML structure and elements.

Uploaded by

mycomputer23123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

HTML Basics: Page, Formatting, Lists, Table, Form

The document outlines five practical exercises for creating basic HTML web pages. Each practical includes an aim and corresponding HTML code for tasks such as creating a simple page, text formatting, lists, tables, and forms. These exercises serve as foundational learning for HTML structure and elements.

Uploaded by

mycomputer23123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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>

You might also like