Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions sample.html
Original file line number Diff line number Diff line change
@@ -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>