Code Box with Copy Button
<!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 href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style>
/* Example CSS */
body {
margin: 0;
font-family: 'Poppins', sans-serif;
background: #f4f4f4;
color: #333;
}
header {
background: #6200ea;
color: white;
padding: 20px;
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
background: #3700b3;
margin: 0;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
section {
padding: 50px;
text-align: center;
}
footer {
background: #6200ea;
color: white;
text-align: center;
padding: 10px;
position: fixed;
width: 100%;
bottom: 0;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Portfolio</h1>
</header>
<nav>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<section id="about">
<h2>About Me</h2>
<p>I am a passionate web developer.</p>
</section>
<section id="projects">
<h2>Projects</h2>
<p>Here are some of my recent works.</p>
</section>
<section id="skills">
<h2>Skills</h2>
<p>HTML, CSS, JavaScript, React</p>
</section>
<section id="contact">
<h2>Contact</h2>
<p>Email: example@gmail.com</p>
</section>
<footer>
<p>© 2025 My Portfolio</p>
</footer>
</body>
</html>