Pulkit Jain
Pulkit Jain
ASSIGNMENT 1
QUESTION 1. Create a simple HTML webpage that includes the basic structure, headings,
paragraphs, and lists..
ANSWER
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<header>
</header>
<nav>
<ul>
</ul>
</nav>
<main>
<section id="section1">
<h2>Section 1</h2>
<p>This is the first section of the webpage. Here's a paragraph introducing the content.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section id="section2">
<h2>Section 2</h2>
<p>This is the second section of the webpage. Another paragraph goes here.</p>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
</section>
<section id="section3">
<h2>Section 3</h2>
<p>This is the third section of the webpage. Yet another paragraph to complete the
content.</p>
<ul>
<li>Apple</li>
<li>Orange</li>
<li>Banana</li>
</ul>
</section>
</main>
<footer>
</footer>
</body>
</html>
QUESTION 2. Explore advanced text formatting in HTML by incorporating features like bold,
italics, underlining, and text alignment..
ANSWER
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Text Formatting</title>
<style>
/* CSS for text alignment */
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
</style>
</head>
<body>
<div class="text-right">
<p>This paragraph is aligned to the right.</p>
</div>
</body>
</html>