Kursinhalt
Bootstrap-Grundlagen für Moderne Websites
Bootstrap-Grundlagen für Moderne Websites
1. Verständnis von Bootstrap
2. Einrichtung der Umgebung
4. Fortgeschrittene Konzepte
Implementierung Des Kontaktformulars
1. Fügen Sie den Kontaktformularbereich hinzu
Erstellen Sie einen Abschnitt am unteren Rand der Seite, um das Kontaktformular unterzubringen.
<section id="contact" class="contact-section py-5 bg-secondary">
<div class="container">
<div class="row">
<div class="col-md-8 mx-auto">
<h2 class="text-center mb-4 text-light">Contact Me</h2>
<!-- Add the contact form here -->
<form>
<div class="mb-3">
<label for="name" class="form-label text-light">Name</label>
<input
type="text"
class="form-control"
id="name"
placeholder="Enter your name"
/>
</div>
<div class="mb-3">
<label for="email" class="form-label text-light">Email</label>
<input
type="email"
class="form-control"
id="email"
placeholder="Enter your email"
/>
</div>
<div class="mb-3">
<label for="message" class="form-label text-light">Message</label>
<textarea
class="form-control"
id="message"
rows="5"
placeholder="Enter your message"
></textarea>
</div>
<button type="submit" class="btn btn-warning">Submit</button>
</form>
</div>
</div>
</div>
</section>
2. Erstellen Sie das Kontaktformular
Verwenden Sie innerhalb des Formulars die Formularelemente von Bootstrap, um Eingabefelder für Name, E-Mail, Nachricht usw. zu erstellen. Passen Sie die Formularbeschriftungen, Platzhalter und den Text der Schaltfläche nach Bedarf an.
Ergebnis
index.html
War alles klar?
Danke für Ihr Feedback!
Abschnitt 5. Kapitel 7