0% found this document useful (0 votes)
66 views4 pages

Assignment 1

Uploaded by

Shafiqha Khanum
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)
66 views4 pages

Assignment 1

Uploaded by

Shafiqha Khanum
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

Assignment 1

Exercise 1: Create a Simple Webpage

Task:
Create a basic webpage with the following elements:

➤ A title in the browser tab as "My First Webpage".


➤ A heading that says "Welcome to My Page".
➤ A paragraph with some dummy text.

<!DOCTYPE html>

<html>

<head>

<title>My First Webpage</title>

</head>

<body>

<h1>Welcome to My Page</h1>

<p>This is a sample paragraph with some dummy text for learning HTML.</p>

</body>

</html>

Outpu
Exercise 2: Create a List

Task:
Create an unordered list with three of your favorite hobbies and an ordered list with three of
your favorite movies.

<!DOCTYPE html>

<html lang="en">

<head>

<title>List</title>

</head>

<body>

<h2>My Hobbies</h2>

<ul>

<li>Reading</li>

<li>Dancing</li>

<li>Anime</li>

</ul>

<h2>My Favorite Movies</h2>

<ol>

<li>Batman</li>

<li>3 Idiots</li>

<li>Tangled</li>

</ol>

</body>

</html>

Output:
Exercise 3: Add Links and Images

Task:
Create a webpage with:
➤ A clickable link to your favorite website.
➤ An image of your choice with alternate text.

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Exercise 3: Links and Images</title>

</head>

<body>

<h1>Welcome to My Webpage</h1>

<p>Visit my favorite website:

<a href="[Link] target="_blank">Wikipedia</a>

</p>

<img src="Screenshot 2025-05-25 [Link]" alt="example image" width="600"

height="600"/>

</body>

</html>
Output:

You might also like