Praise for Developing Business Applications for the Web “As an IT professional, I see the value in forward-thinking developers and business analysts, who are prepared to take their company to the next level. Laura and Christian have created a unique book that outlines a logical process for Web development in today’s challenging Web environment. Students will find that this book easily traverses the skills required to create an effective Web interface, access databases, and provide valuable business applications.” Lisa Bock Computer Information Technology Assistant Professor Pennsylvania College of Technology “A great overview of business application Web development. Experienced application developers on enterprise systems can use this text to get started with the different Web technologies … the book pulls it all together. It is also a great resource for young IT professionals just getting started in business application development. The book can be used by seasoned IT managers to help them understand the complexities of developing Web applications for their business.” Jim Buck IBM i educator and coauthor of Programming in ILE RPG, Fifth Edition “An intelligent resource for any serious business-minded Web developer.” Charles Guarino President, Central Park Data Systems “Today’s successful business developer must be well- versed in both Web development skills and in how to connect these skills to dynamic business environments. Developing Business Applications for the Web addresses both of these vital components by providing technical coverage of a vast array of development tools while keeping the focus on real-world business applications. “Get down to business” with Developing Business Applications for the Web!” Char Parker Computer Information Systems Instructor Muskegon Community College “Business developers now have a step-by-step guide to HTML, CSS, JavaScript, and more, and can complete their learning with the exercises provided. The journey to developing business applications for the Web starts with this book.” Alan Seiden Seiden Group “Developing Business Applications for the Web provides a great way to learn how to take business to the Web with exercises and examples to guide you through the process. It not only teaches basic Web development skills, but also how to take existing business applications to the Web to reach a broader audience. A great starting point for developing business Web applications!” Amanda Walsh Senior Programmer/Analyst (IBM i and Web developer) Consultech Services, Inc. Developing Business Applications for the Web: With HTML, CSS, JSP, PHP, ASP.NET, and JavaScript Laura Ubelhor and Christian Hur First Edition First Printing—March 2017 © 2017 Laura Ubelhor and Christian Hur. All rights reserved. Printed in USA. All rights reserved. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, contact [email protected]. Every attempt has been made to provide correct information. However, the publisher and the author do not guarantee the accuracy of the book and do not assume responsibility for information included in or omitted from it. The following are trademarks of International Business Machines Corporation in the United States, other countries, or both: DB2, Domino, IBM, Lotus, Rational, and WebSphere. Adobe, Dreamweaver, and Photoshop are registered trademarks of Adobe. Chrome is a trademark of Google. Firefox is a registered trademark of The Mozilla Foundation. Java, and all Java-based trademarks and logos, are trademarks or registered trademarks of Oracle and/or its affiliates. JBuilder is a registered trademark of Embarcadero Technologies. Bing, Internet Explorer, Microsoft, SQL Server, and Windows are trademarks of the Microsoft Corporation in the United States, other countries, or both. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. Safari is a registered trademark of Apple. SlickEdit is a registered trademark of SlickEdit. TextPad is a registered trademark of Helios Software Solutions. UltraEdit is a trademark of IDM Computer Solutions. UNIX is a registered trademark of The Open Group in the United States, other countries, or both. Yahoo! is a registered trademark of Yahoo. All other product names are trademarked or copyrighted by their respective manufacturers. MC Press offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include custom covers and content particular to your business, training goals, marketing focus, and branding interest. MC Press Online, LLC Corporate Offices: 3695 W. Quail Heights Court, Boise, ID 83703-3861 USA Sales and Customer Service: (208) 629-7275 ext. 500; [email protected] Permissions and Bulk/Special Orders: [email protected] www.mcpressonline.com • www.mc-store.com ISBN: 978-1-58347-348-1 Acknowledgments I’d like to thank Christian Hur for working with me on this project. We had a great experience and worked well together. Christian made this large project a pleasure, and I greatly appreciate the knowledge, insight, experience, and effort Christian put forth. Thank you also to Anne Grubb, MC Press Book Editor. I’d also like to thank my family for their support. A special thanks to Paul for his love and patience. Writing this book would not have been possible without the support my family provided. This effort is dedicated in loving memory of my beloved nephew Brent. We miss him so, and he will always live on in our memories. Brent was known to say “the sky’s the limit.” These words are so true; they’re definitely inspirational words to live by. Don’t hesitate to reach for the sky. My hope is that this book inspires experienced business developers to feel comfortable learning Web skills and those new to development to dive in and learn how to get down to business with Web tools. I’ve been fortunate to have a career that I enjoy and am very passionate about. I hope this book inspires others to realize the same career satisfaction. Laura Ubelhor First and foremost, I’d like to thank Laura Ubelhor for the opportunity to be a part of this project and for the learning opportunities she has provided. The completion of this project could not have been accomplished without her experience, encouragement, and guidance. I’d also like to thank Anne Grubb for her support and encouragement. Truly, I’ve been blessed to have worked with Laura and Anne on this project, and I’ll remain forever thankful. I cannot express enough thanks to Jim Buck for his encouragement and advice. Jim has led me to places I never thought I would go, and I offer my sincere appreciation for introducing me to this project. I’d also like to thank all my colleagues at Gateway Technical College for their support. A special thanks to all my students at GTC for giving me inspiration to keep on writing and teaching. I’d also like to thank my family for their support and encouragement. Most of all, I want to thank my wife, Kelly, for her incredible heart and invaluable support. Thanks for giving me the strength to believe in my passion and pursue my dreams. Christian Hur Contents Acknowledgments Introduction Why Another Book About Web Application Development? How Is This Book Arranged? Intended Audience Do I Need to Start from Scratch? Choosing Development Tools Summary 1: An Introduction to Browser-Based Applications Additional Languages What Is a Client? What Is a Browser? What Is HTML? What Is a Web Server? What Database(s) Are Used? Where Can I Find Sample Code? The Development Process IT Staff Platforms Devices Ajax SOA Web Services Other Languages Fear of Web Technology Expanding Your Skill Set The Job Market Outsourcing Summary Key Terms Discussion/Review Questions Exercises 2: An Introduction to HTML Why Learn HTML? What Is HTML All About? HTML5 A Basic HTML Page Block-Level and Text-Level Elements Block-Level Elements Text-Level Elements Structural Elements HTML5 Structural Elements Updated Sample Page Summary Key Terms Discussion/Review Questions Exercises 3: Using Cascading Style Sheets What Is CSS? How Cascading Style Sheets Work Applying Style Sheets to Web Pages Creating an Inline Style Sheet Creating an Embedded Style Sheet Creating an External Style Sheet Importing Style Sheets Exploring CSS Style Rules and Properties How Do You Style Text Using CSS? What Properties Control the Arrangement of an Element? What Properties Control the Display of an Element? What Properties Control the Background of an Element? What Properties Control the Appearance of Elements? Defining Style Classes How Do Elements Inherit Properties from a Parent Element? What Is an ID? What You Can Do with a Cascading Style Sheet Summary Key Terms Discussion/Review Questions Exercises 4: Adding Links and Anchors How to Place a Link on a Page How Links Affect Search Engines Deep Linking How to Use Anchors Types of Hyperlinks Other Kinds of Links Mailto Drawbacks Using an FTP Link Using Invisible Links What About Our Example Page? Summary Key Terms Discussion/Review Questions Exercises 5: Visual Elements and Web Multimedia Video Graphics Overview Types of Image Files Incorporating Images into Web Pages Creating Image Hyperlinks Image Maps Tools for Working with Images The Dos and Don’ts of Working with Image Files Web Multimedia Embedding Audio on Web Pages Embedding Videos on Web Pages Embedding Videos with the <video> Element Embedding Videos with the <embed> Element Embedding Videos with the <object> Element What About Our Example Page? Summary Key Terms Discussion/Review Questions Exercises 6: Arranging Content Content-Arrangement Methods The Purpose of Arranging Content Tell Potential Customers About Your Company Generate Sales Leads Sell a Product Communicate with Business Partners Provide Resources A Web Page Structure Tables Screen Readers Columns and Column Groups Nested Tables Frames Inline Frames Web Forms What About Our Example Page? Summary Key Terms Discussion/Review Questions Exercises 7: Web Application Overview Getting Familiar with Web Applications for Business Components of a Web Application System The Client The Browser HTML The Web Server
Description: