Here's a sample HTML and CSS code for a personal and complete psychologist website:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dr. Jane Doe - Psychologist</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<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>
</header>
<main>
<section id="home">
<h1>Welcome to Dr. Jane Doe's Psychology Practice</h1>
<p>Providing compassionate and professional psychological services.</p>
</section>
<section id="about">
<h2>About Dr. Jane Doe</h2>
<p>Dr. Jane Doe is a licensed psychologist with over 10 years of experience in helping individuals overcome their challenges and improve their mental well-being.</p>
</section>
<section id="services">
<h2>Services Offered</h2>
<ul>
<li>Individual Therapy</li>
<li>Couples Therapy</li>
<li>Family Therapy</li>
<li>Cognitive Behavioral Therapy (CBT)</li>
<li>Trauma-Focused Therapy</li>
</ul>
</section>
<section id="contact">
<h2>Contact Us</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</button>
</form>
</section>
</main>
<footer>
<p>© 2023 Dr. Jane Doe's Psychology Practice. All rights reserved.</p>
</footer>
</body>
</html>
/* style.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
padding: 20px;
}
section {
margin-bottom: 40px;
}
h1, h2 {
color: #333;
}
form label {
display: block;
margin-bottom: 5px;
}
form input,
form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
}
form button {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
cursor: pointer;
}
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
This code provides a basic structure for a psychologist website with sections for Home, About, Services, and Contact. The HTML defines the content and structure of the website, while the CSS styles the elements to create a visually appealing layout.
Feel free to customize and expand upon this code to fit your specific needs and design preferences.