https://www.geeksforgeeks.org/how-to-make-a-website-using-chatgpt/
index_html & css tag A
<!DOCTYPE html>
<html>
<head>
<title>My Portfolio</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<style>
/* Global Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
body {
background-color: #f5f5f5;
}
h1, h2 {
margin-top: 40px;
text-align: center;
color: #333;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2rem;
}
p {
margin: 20px 0;
line-height: 1.5;
text-align: justify;
}
ul {
list-style: none;
margin: 20px 0;
padding: 0;
}
li {
margin-bottom: 10px;
}
nav {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
}
nav ul {
display: flex;
}
nav ul li {
margin: 0 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
padding: 10px;
transition: all 0.3s ease;
}
nav ul li a:hover {
background-color: #fff;
color: #333;
}
section {
margin: 40px;
}
#home {
background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff52");
background-size: cover;
background-position: center;
height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
#home h1 {
color: #fff;
font-size: 5rem;
text-shadow: 2px 2px 0 #333;
}
#home p {
color: #fff;
font-size: 1.5rem;
margin-top: 20px;
text-shadow: 2px 2px 0 #333;
}
form {
display: flex;
flex-direction: column;
margin-top: 20px;
}
label {
margin-top: 10px;
font-size: 1.2rem;
color: #333;
}
input[type="text"], input[type="email"], textarea {
padding: 10px;
border-radius: 5px;
border: none;
margin: 5px 0;
}
input[type="submit"] {
background-color: #333;
color: #fff;
border: none;
padding: 10px;
border-radius: 5px;
margin-top: 10px;
cursor: pointer;
transition: all 0.3s ease;
}
input[type="submit"]:hover {
background-color: #fff;
color: #333;
}
footer {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 80px;
}
footer p {
font-size: 1.2rem;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<section id="home">
<h1>Welcome to My Portfolio</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vivamus ultricies erat id odio ullamcorper, eget bibendum
neque elementum. Nam sodales, sapien vel fermentum faucibus,
nibh tortor laoreet neque, sed tincidunt velit velit a quam.</p>
</section>
<section id="about">
<h2>About Me</h2>
<p>My name is John Doe and I'm a web developer based in San Francisco.
I specialize in creating responsive websites that are optimized for mobile devices.</p>
</section>
<section id="services">
<h2>My Services</h2>
<ul>
<li>Website Design</li>
<li>Website Development</li>
<li>Search Engine Optimization</li>
<li>Social Media Marketing</li>
</ul>
</section>
<section id="contact">
<h2>Contact Me</h2>
<form>
<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 Message</button>
</form>
</section>
<footer>
<p>© 2023 My Portfolio</p>
</footer>
<script src="script.js"></script>
</body>
</html>
https://www.geeksforgeeks.org/how-to-make-a-website-using-chatgpt/
HTML
첫댓글 https://www.w3schools.com/css/tryit.asp?filename=trycss_default
https://www.google.com/search?client=avast-a-1&sca_esv=583328628&sxsrf=AM9HkKlEDx3fEY0VD8KBcsVnCZHpuCplOw:1700224924188&q=How+I+Built+a+Complete+Website+Using+ChatGPT+%7C+Make+Website+Easily+With+AI&tbm=isch&source=univ&fir=m3wX_97GzOKfpM%252C0wnwxSoUtx6_xM%252C_%253BKPm6oQasl10CqM%252CwbuLmJvL6Vg5sM%252C_%253BS4ArnNDbh0U2gM%252CwbuLmJvL6Vg5sM%252C_%253B4XUor63VdEURSM%252CZ9Htp-m11Hu2uM%252C_%253BgBQD_P0Bv13AtM%252Cyw6JSBh7HvBFzM%252C_%253B1kG9VRXKLk9RkM%252Cyw6JSBh7HvBFzM%252C_%253BcdjSKUe3Q_qmvM%252CwbuLmJvL6Vg5sM%252C_%253B27RSr9ekELdPCM%252C4u7lW3A-Abd3PM%252C_%253B7-J65lZ1nUhfOM%252CiKytq