Blog Project: Contact Form

HTML Fundamentals
HTML Basics
Blog Project: Contact Form
78
1/1
   

Contact Form



Next, we'll create a Contact Form for your blog. The form will include Name, Email, and Message fields. We'll also add a Submit button.
Check out the code:
<h1><span>Contact Me</span></h1>
<form>
<input name="name" type="text" /><br/>
<input name="email" type="email" /><br/>
<textarea name="message"></textarea>
<input type="submit" value="SEND" class="submit" />
</form>
Try It Yourself

This is just a static HTML page, so it won't work to actually submit the form. You'd need to create the server-side code in order to submit a real form and process the data. To learn how, complete SoloLearn's PHP course once you've completed the HTML and CSS courses.
TASK: Check out the code and customize the form to fit your needs!

Comments