Skip to Content
HTML, XHTML, and CSS All-In-One Desk Reference For Dummies®
book

HTML, XHTML, and CSS All-In-One Desk Reference For Dummies®

by Andy Harris, Chris McCulloh
May 2008
Beginner
960 pages
20h 4m
English
For Dummies
Content preview from HTML, XHTML, and CSS All-In-One Desk Reference For Dummies®

Chapter 7. Creating Forms

In This Chapter

  • Adding form to your pages

  • Creating input and password text boxes

  • Building multi-line text inputs

  • Making list boxes and check boxes

  • Building groups of radio buttons

  • Creating buttons

XHTML gives you the ability to describe Web pages, but today's Web isn't a one-way affair. Users want to communicate through Web pages, typing in information, making selections from drop-down lists, and interacting, rather than simply reading. In this chapter, you learn how to build these interactive elements in your pages.

You Have Great Form

There's one more aspect to XHTML that you need to understand — the ability to make forms. Forms are the parts of the page that allow some user interaction. Figure 7-1 shows a page with all the primary form elements in place.

The form demo (or formDemo.html on the CD-ROM, if you're playing along at home) is an example of all the main form elements in XHTML. In this chapter, you discover how to build all these elements.

Tip

You can create forms with ordinary XHTML, but to make them do something, you need a programming language. Book IV explains how to use JavaScript to interact with your forms, and Book V describes the PHP language. Use this chapter to figure out how to build the forms and then jump to another minibook to figure out how to make them do stuff. If you aren't ready for full-blown programming yet, feel free to skip this chapter for now and move on to CSS in Books II and III. Come back here when you're ready to make forms ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML, XHTML, & CSS All-in-One For Dummies®, 2nd Edition

HTML, XHTML, & CSS All-in-One For Dummies®, 2nd Edition

Andy Harris

Publisher Resources

ISBN: 9780470186275Purchase book