This commit is contained in:
Ansh srivastava 2023-02-27 13:59:20 +05:30 committed by GitHub
commit c47833e020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

59
sample.html Normal file
View file

@ -0,0 +1,59 @@
/* Here is the sample HTML code for example making a portfolio website the basic HTML Structure will be */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="about">
<h2>About Me</h2>
<p>Hi, my name is Ansh srivastava and I'm a web developer. I have experience in HTML, CSS and JavaScript. I'm passionate about creating clean, responsive, and user-friendly websites.</p>
</section>
<section id="projects">
<h2>Projects</h2>
<ul>
<li>
<h3>Project 1</h3>
<p>Description of project 1.</p>
</li>
<li>
<h3>Project 2</h3>
<p>Description of project 2.</p>
</li>
<li>
<h3>Project 3</h3>
<p>Description of project 3.</p>
</li>
</ul>
</section>
<section id="contact">
<h2>Contact Me</h2>
<form action="submit-form.js" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Send</button>
</form>
</section>
</main>
<footer>
<p>Copyright &copy; 2023</p>
</footer>
</body>
</html>