<!DOCTYPE html>
<html>
<head>
	<title>My Personal Website</title>
	<style>
		body {
			font-family: Arial, sans-serif;
			margin: 0;
			padding: 0;
		}
<pre><code>	header {
		background-color: #333;
		color: white;
		padding: 20px;
		text-align: center;
	}

	nav {
		background-color: #f2f2f2;
		padding: 10px;
		text-align: center;
	}

	nav a {
		text-decoration: none;
		color: #333;
		padding: 10px;
	}

	nav a:hover {
		background-color: #333;
		color: white;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 20px;
	}

	.home {
		background-image: url('home.jpg');
		background-size: cover;
		height: 500px;
	}

	.about {
		padding: 20px;
	}

	.study {
		padding: 20px;
	}

	.hobbies {
		padding: 20px;
	}

	.contact {
		padding: 20px;
	}

	form {
		margin-top: 20px;
	}

	form label {
		display: block;
		margin-bottom: 10px;
	}

	form input,
	form textarea {
		width: 100%;
		padding: 10px;
		margin-bottom: 20px;
	}

	form button {
		padding: 10px 20px;
		background-color: #333;
		color: white;
		border: none;
		cursor: pointer;
	}

	form button:hover {
		background-color: #555;
	}

	footer {
		background-color: #333;
		color: white;
		padding: 20px;
		text-align: center;
	}
&lt;/style&gt;
</code></pre>
</head>
<body>
	<header>
		<h1>Welcome to My Personal Website</h1>
	</header>
<pre><code>&lt;nav&gt;
	&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;
	&lt;a href=&quot;about.html&quot;&gt;About Me&lt;/a&gt;
	&lt;a href=&quot;study.html&quot;&gt;Study&lt;/a&gt;
	&lt;a href=&quot;hobbies.html&quot;&gt;Hobbies&lt;/a&gt;
	&lt;a href=&quot;contact.html&quot;&gt;Contact Me&lt;/a&gt;
&lt;/nav&gt;

&lt;div class=&quot;container&quot;&gt;
	&lt;div class=&quot;home&quot;&gt;
		&lt;h2&gt;Welcome to My Home Page&lt;/h2&gt;
		&lt;p&gt;This is a creative page about me and my interests.&lt;/p&gt;
	&lt;/div&gt;

	&lt;div class=&quot;about&quot;&gt;
		&lt;h2&gt;About Me&lt;/h2&gt;
		&lt;p&gt;I was born in the beautiful city of XYZ. Here are some pictures of the city:&lt;/p&gt;
		&lt;img src=&quot;city1.jpg&quot; alt=&quot;City 1&quot;&gt;
		&lt;img src=&quot;city2.jpg&quot; alt=&quot;City 2&quot;&gt;
	&lt;/div&gt;

	&lt;div class=&quot;study&quot;&gt;
		&lt;h2&gt;Study&lt;/h2&gt;
		&lt;p&gt;I have studied at XYZ University. Here are some pictures of my university:&lt;/p&gt;
		&lt;img src=&quot;university1.jpg&quot; alt=&quot;University 1&quot;&gt;
		&lt;img src=&quot;university2.jpg&quot; alt=&quot;University 2&quot;&gt;
	&lt;/div&gt;

	&lt;div class=&quot;hobbies&quot;&gt;
		&lt;h2&gt;Hobbies&lt;/h2&gt;
		&lt;p&gt;These are some of my hobbies:&lt;/p&gt;
		&lt;img src=&quot;hobby1.jpg&quot; alt=&quot;Hobby 1&quot;&gt;
		&lt;img src=&quot;hobby2.jpg&quot; alt=&quot;Hobby 2&quot;&gt;
	&lt;/div&gt;

	&lt;div class=&quot;contact&quot;&gt;
		&lt;h2&gt;Contact Me&lt;/h2&gt;
		&lt;p&gt;Feel free to contact me with any questions or comments:&lt;/p&gt;
		&lt;form&gt;
			&lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;
			&lt;input type=&quot;text&quot; id=&quot;name&quot; required&gt;

			&lt;label for=&quot;email&quot;&gt;Email:&lt;/label&gt;
			&lt;input type=&quot;email&quot; id=&quot;email&quot; required&gt;

			&lt;label for=&quot;message&quot;&gt;Message:&lt;/label&gt;
			&lt;textarea id=&quot;message&quot; required&gt;&lt;/textarea&gt;

			&lt;button type=&quot;submit&quot;&gt;Send&lt;/button&gt;
		&lt;/form&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;footer&gt;
	&lt;p&gt;&amp;copy; 2021 My Personal Website. All rights reserved.&lt;/p&gt;
&lt;/footer&gt;
</code></pre>
</body>
</html>

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

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