Priya Internship
Priya Internship
Priya Internship
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample HTML Page</title>
<style>
/* CSS styles can be added here */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
padding: 20px;
}
h1 {
color: #333;
}
p {
color: #666;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Sample Page</h1>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section id="home">
<h2>Home Section</h2>
<p>This is the home section of the webpage.</p>
<img src="https://via.placeholder.com/150" alt="Placeholder Image">
</section>
<section id="about">
<h2>About Section</h2>
<p>This section provides information about the webpage.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</section>
<section id="contact">
<h2>Contact Section</h2>
<p>Contact us using the form below:</p>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4"
required></textarea>
<br>
<button type="submit">Send</button>
</form>
</section>
<footer>
<p>© 2024 Sample Page. All rights reserved.</p>
</footer>
</body>
</html>
This example covers many common HTML tags used to create a basic webpage with sections,
navigation, content, and a form for user interaction.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image and Table Example</title>
<style>
/* CSS styles for the table */
table {
width: 50%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h1>Image and Table Example</h1>
<h2>Sample Image:</h2>
<img src="https://via.placeholder.com/300" alt="Placeholder Image"
width="300" height="200">
<h2>Sample Table:</h2>
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
<td>Row 1, Cell 3</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
<td>Row 2, Cell 3</td>
</tr>
<tr>
<td>Row 3, Cell 1</td>
<td>Row 3, Cell 2</td>
<td>Row 3, Cell 3</td>
</tr>
</table>
In this example: