O'Reilly logo

jQuery for Designers Beginner's Guide by Natalie MacLees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required