Time for action – setting up an HTML5 web form

  1. We'll get started with a simple HTML document and the associated files and folders, just like we set up in Chapter 1, Designer, Meet jQuery. We want to make sure to use the HTML5 doctype in our document type declaration at the top of the document:
    <!DOCTYPE html>

    After all those long and convoluted document type declarations used by HTML 4 and xHTML, this one is a breath of fresh air, isn't it?

  2. Now, inside the <body> tag, open up a <form> tag as follows:
    <form action="#" id="account-form">
    </form>

    The form tag needs an action attribute in order to work. Since our forms are just dummy forms for scripting and styling purposes, we'll just use # as the value of that attribute. The value of the action attribute ...

Get jQuery for Designers Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.