<!DOCTYPE html>
<html>
<head>
	<title>Personal Website</title>
	<style>
		body {
			font-family: Arial, sans-serif;
			margin: 0;
			padding: 0;
		}
<pre><code>	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 20px;
	}
	
	.menu {
		display: flex;
		justify-content: space-between;
		background-color: #333;
		color: #fff;
		padding: 10px;
	}
	
	.menu a {
		color: #fff;
		text-decoration: none;
		padding: 5px;
	}
	
	.page {
		margin-top: 20px;
	}
	
	.content {
		margin-bottom: 20px;
	}
	
	.contact-form {
		display: flex;
		flex-direction: column;
		max-width: 500px;
	}
	
	.contact-form label {
		margin-bottom: 5px;
	}
	
	.contact-form input, .contact-form textarea {
		margin-bottom: 10px;
		padding: 5px;
	}
	
	.contact-form button {
		padding: 10px;
		background-color: #333;
		color: #fff;
		border: none;
		cursor: pointer;
	}
&lt;/style&gt;
</code></pre>
</head>
<body>
	<div class='container'>
		<div class='menu'>
			<a href='index.html'>Home</a>
			<a href='about.html'>About Me</a>
			<a href='study.html'>Study/Work</a>
			<a href='hobbies.html'>Hobbies</a>
		</div>
<pre><code>	&lt;div class='page'&gt;
		&lt;div class='content'&gt;
			&lt;h1&gt;Welcome to my Personal Website!&lt;/h1&gt;
			&lt;p&gt;Feel free to explore the different pages and learn more about me.&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class='content'&gt;
			&lt;h2&gt;About Me&lt;/h2&gt;
			&lt;p&gt;I was born in the beautiful city of [City]. Here are some pictures of my city:&lt;/p&gt;
			&lt;img src='city1.jpg' alt='City 1'&gt;
			&lt;img src='city2.jpg' alt='City 2'&gt;
			&lt;img src='city3.jpg' alt='City 3'&gt;
		&lt;/div&gt;
		&lt;div class='content'&gt;
			&lt;h2&gt;Study/Work&lt;/h2&gt;
			&lt;p&gt;I have studied at various institutions and currently attending [University]. Here are some pictures:&lt;/p&gt;
			&lt;img src='school1.jpg' alt='School 1'&gt;
			&lt;img src='school2.jpg' alt='School 2'&gt;
			&lt;img src='university.jpg' alt='University'&gt;
		&lt;/div&gt;
		&lt;div class='content'&gt;
			&lt;h2&gt;Hobbies&lt;/h2&gt;
			&lt;p&gt;Here are some of my hobbies:&lt;/p&gt;
			&lt;img src='hobby1.jpg' alt='Hobby 1'&gt;
			&lt;img src='hobby2.jpg' alt='Hobby 2'&gt;
			&lt;img src='hobby3.jpg' alt='Hobby 3'&gt;
		&lt;/div&gt;
		&lt;div class='content'&gt;
			&lt;h2&gt;Contact Me&lt;/h2&gt;
			&lt;form class='contact-form'&gt;
				&lt;label for='name'&gt;Name:&lt;/label&gt;
				&lt;input type='text' id='name' name='name' required&gt;
				
				&lt;label for='email'&gt;Email:&lt;/label&gt;
				&lt;input type='email' id='email' name='email' required&gt;
				
				&lt;label for='message'&gt;Message:&lt;/label&gt;
				&lt;textarea id='message' name='message' required&gt;&lt;/textarea&gt;
				
				&lt;button type='submit'&gt;Submit&lt;/button&gt;
			&lt;/form&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</code></pre>
</body>
</html>

原文地址: https://www.cveoy.top/t/topic/o4p5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录