<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>个人网页</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 1em;
text-align: center;
}
section {
padding: 20px;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1em;
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>欢迎来到我的个人网页</h1>
</header>
<section>
<h2>关于我</h2>
<p>你好,我是 [你的名字]。我对 [你的兴趣爱好或专业领域] 很感兴趣。</p>
</section>
<section>
<h2>我的经历</h2>
<p>在过去的几年中,我从事了 [你的工作或学习经历]。</p>
</section>
<section>
<h2>我的项目</h2>
<p>我参与了一些有趣的项目,包括 [举例你参与的项目]。</p>
</section>
<footer>
<p>© 2024 我的个人网页</p>
</footer>
</body>
</html>
将这段代码保存为 ".html" 文件,然后用浏览器打开,就可以看到效果啦!如果需要添加更多内容,比如图片、链接、样式等,可以继续修改这个模板。