SBS HTML Logo
CLOSE

HTML Forms

HTML forms allow users to enter and submit data from your website.

Note: In order for a form to process, you'll need a processing script. Processing scripts are built with server side scripting languages such as PHP, Python, ASP and more.

<form method="post" action="someScript.php">

    
    <p>    
        <label>Name</label><br>
        <input type="text" name="name" placeholder="Your Name">
    </p>
    
    
    <p>
        <label>Email</label><br>
        <input type="email" name="email" placeholder="Your Email">
    </p>
    
     <p>
        <label>Message</label><br>
        <textarea name="message" placeholder="Your Message Here"></textarea>
    </p>
    
    <p>
        <input type="submit" name="submit" value="Send">
    </p>
    
</form>
Expand

The above is an example of a simple contact form. If you submit the form you will see a 404 Error page because the script it is looking for does not exist. You will learn how to create a form processing script in later tutorials.

Tutorial Steps

Share This Tutorial

Link To This Tutorial

Tutorial URL
https://stepbystephtml.com/tutorial/16/html-advanced-tutorial

HTML Link

Help Us to Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.

Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.

HTML Link

Copyright 2017 Step By Step HTML. All Rights reserved.