Quick viewing(Text Mode)

Site Development Associate Student Guide Web Foundations Series CCL02-CFSDFN-PR-1405 • Version 2.1 • Rd060214

Site Development Associate Student Guide Web Foundations Series CCL02-CFSDFN-PR-1405 • Version 2.1 • Rd060214

Site Development Associate Student Guide Web Foundations Series CCL02-CFSDFN-PR-1405 • version 2.1 • rd060214

EVALUATION COPY

EVALUATION COPY

Site Development Associate Student Guide

EVALUATION COPY

Chief Executive Officer Barry Fingerhut

Vice President, Operations & Development Todd Hopkins

Senior Content Developer Kenneth A. Kozakis

Managing Editor Susan M. Lane

Editor Sarah Skodak

Project Manager/Publisher Tina Strong

Customer Service Certification Partners, LLC 1230 W. Washington St., Ste. 201 Tempe, AZ 85281 (602) 275-7700

Copyright © 2014, All rights reserved.

EVALUATION COPY

Site Development Associate

Developer Patrick T. Lane Contributors DeAnne Bowersock, James Stanger, Ph.D., and Kenneth A. Kozakis

Editor Sarah Skodak

Project Manager/Publisher Tina Strong

Trademarks Certification Partners is a trademark of Certification Partners, LLC. All product names and services identified throughout this book are trademarks or registered trademarks of their respective companies. They are used throughout this book in editorial fashion only. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with the book. Copyrights of any screen captures in this book are the property of the software's manufacturer.

Disclaimer Certification Partners, LLC, makes a genuine attempt to ensure the accuracy and quality of the content described herein; however, Certification Partners makes no warranty, express or implied, with respect to the quality, reliability, accuracy, or freedom from error of this document or the products it describes. Certification Partners makes no representation or warranty with respect to the contents hereof and specifically disclaims any implied warranties of fitness for any particular purpose. Certification Partners disclaims all liability for any direct, indirect, incidental or consequential, special or exemplary damages resulting from the use of the information in this document or from the use of any products described in this document. Mention of any product or organization does not constitute an endorsement by Certification Partners of that product or corporation. Data used in examples and labs is intended to be fictional even if actual data is used or accessed. Any resemblance to, or use of real persons or organizations should be treated as entirely coincidental. Certification Partners makes every effort to ensure the accuracy of URLs referenced in all its material, but cannot guarantee that all URLs will be available throughout the life of a course. When this course was published, all URLs were checked for accuracy and completeness. However, due to the ever-changing nature of the Internet, some URLs may no longer be available or may have been redirected.

Copyright Information This training manual is copyrighted and all rights are reserved by Certification Partners, LLC. No part of this publication may be reproduced, transmitted, stored in a retrieval system, modified, or translated into any language or language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise without written permission of Certification Partners, 1230 W. Washington Street, Suite 201, Tempe, AZ 85281. EVALUATION COPY

Copyright © 2014 by Certification Partners, LLC All Rights Reserved

ISBN: 0-7423-3269-1

iv

EVALUATION COPY

© 2014 Certification Partners, LLC — All Rights Reserved. Version 2.1 v

Table of Contents

Course Description ...... x Courseware ...... xi Course Objectives...... xv Classroom Setup ...... xv System Requirements ...... xv Conventions and Graphics Used in This Book ...... xix Lesson 1: and Site Development Essentials ...... 1-1 Pre-Assessment Questions ...... 1-3 Creating Web Pages ...... 1-4 Mobile and Cloud Issues ...... 1-5 Text Editors and Markup Languages ...... 1-5 Graphical (GUI) Editors ...... 1-6 History of Markup Languages ...... 1-7 The HTML Web Development Trifecta: HTML5, CSS and JavaScript ...... 1-14 Web Site Development Principles ...... 1-15 Hosting and Web Service Providers ...... 1-38 The Habitat for Humanity Web Site ...... 1-41 Case Study ...... 1-43 Lesson 1 Review ...... 1-46 Lesson 2: HTML5 Coding ...... 2-1 Pre-Assessment Questions ...... 2-2 Introduction to Using HTML ...... 2-3 Elements and Markup Tags ...... 2-3 Document Structure Tags ...... 2-5 Web Site File Structure ...... 2-10 Preparing Your Development Environment ...... 2-11 Paragraph Formatting and Block-Level Elements ...... 2-14 Text-Level Elements ...... 2-23 Lists ...... 2-26 Good Coding Practice ...... 2-28 Case Study ...... 2-31 Lesson 2 Review ...... 2-32 Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements ...... 3-1 Pre-Assessment Questions ...... 3-2 Cascading Style Sheets (CSS) ...... 3-3 Separating Content in HTML ...... 3-8 Images in Web Pages ...... 3-11 HTML Entities ...... 3-21 Specifying Colors ...... 3-24 Page Colors and Backgrounds ...... 3-25 Specifying Font Information...... 3-27 Issues ...... 3-29 HTML5 and Older Browsers ...... 3-35 Case Study ...... 3-39 Lesson 3 Review ...... 3-41 Lesson 4: Hyperlinks ...... 4-1 Pre-Assessment Questions ...... 4-2 Introduction to HyperlinksEVALUATION ...... COPY ...... 4-3 The Anchor Element ...... 4-3 Creating Local Hyperlinks ...... 4-5 Creating External Hyperlinks ...... 4-9 Using Images as Hyperlinks ...... 4-11 Creating Internal Links ...... 4-12 Managing Hyperlinks ...... 4-16 Case Study ...... 4-17 Lesson 4 Review ...... 4-19

© 2014 Certification Partners, LLC — All Rights Reserved. Version 2.1 vi

Lesson 5: HTML Tables ...... 5-1 Pre-Assessment Questions ...... 5-2 Introduction to HTML Tables ...... 5-3 CSS Properties for All Table Elements ...... 5-4 Table and Data Alignment Options ...... 5-10 Height and Width of Table Elements ...... 5-12 Column and Row Spanning ...... 5-14 HTML Tables vs. CSS Page Structure...... 5-17 Case Study ...... 5-19 Lesson 5 Review ...... 5-21 Lesson 6: Web Forms ...... 6-1 Pre-Assessment Questions ...... 6-2 Introduction to Web Forms ...... 6-3 Web Forms and CGI ...... 6-3 HTML5 and Forms ...... 6-8 Basic Tags for Creating Web Forms ...... 6-8 Web Form Fields ...... 6-11 Case Study ...... 6-31 Lesson 6 Review ...... 6-32 Lesson 7: Video, Audio and Image Techniques ...... 7-1 Pre-Assessment Questions ...... 7-2 Introduction to Web Video, Audio and Image Techniques ...... 7-3 The

© 2014 Certification Partners, LLC — All Rights Reserved. Version 2.1 vii

Developing Web Pages for Mobile Devices ...... 9-26 Mobile Apps vs. Mobile Web Sites ...... 9-28 Converting a Web site for Mobile Users ...... 9-30 Working with Web 2.0 ...... 9-31 Case Study ...... 9-38 Lesson 9 Review ...... 9-40 Lesson 10: Web Site Development for Business ...... 10-1 Pre-Assessment Questions ...... 10-3 Developing a Business Web Site ...... 10-4 E-Commerce Considerations ...... 10-7 Internet Marketing and Search Engine Optimization (SEO) ...... 10-8 E-Commerce Payment Technologies ...... 10-11 Working in a Global Environment ...... 10-14 and Web Pages ...... 10-15 Optimizing the Impact of the Web Page ...... 10-18 Front-End Issues ...... 10-18 File Formats and Active Content ...... 10-23 Back-End Issues ...... 10-26 Bandwidth and Download Time ...... 10-28 Naming Web Page Files...... 10-30 Case Study ...... 10-32 Lesson 10 Review ...... 10-34 Appendixes ...... Appendixes-1 Glossary ...... Glossary-1 Index ...... Index-1

List of Labs Lab 1-1: Reviewing W3C standards ...... 1-13 Lab 1-2: Viewing standards sites ...... 1-19 Lab 1-3: Using a text-only browser to evaluate accessibility ...... 1-21 Lab 1-4: Researching ways that Web sites address cultural diversity ...... 1-26 Lab 1-5: Investigating intellectual property concepts and laws ...... 1-37 Lab 2-1: Creating a simple HTML5 page ...... 2-11 Lab 2-2: Creating paragraph breaks and line breaks with HTML ...... 2-15 Lab 2-3: Using headings in HTML ...... 2-19 Lab 2-4: Indenting and centering text with HTML ...... 2-21 Lab 2-5: Using text-level phrasing elements in HTML ...... 2-24 Lab 2-6: Creating lists with HTML ...... 2-27 Lab 2-7: Documenting and commenting HTML code...... 2-30 Lab 3-1: Using an external style sheet with HTML ...... 3-7 Lab 3-2: Assigning inline CSS attribute values to the


tag in HTML ...... 3-10 Lab 3-3: Incorporating images in an HTML page ...... 3-14 Lab 3-4: Aligning images relative to text with HTML ...... 3-19 Lab 3-5: Adding a copyright statement with an HTML entity ...... 3-23 Lab 3-6: Changing page colors and backgrounds with HTML...... 3-26 Lab 3-7: Formatting text with CSS ...... 3-28 Lab 3-8: Comparing Web site color combinations ...... 3-30 Lab 3-9: Using HTML5 and CSS to structure a page ...... 3-36 Lab 4-1: Creating local text hyperlinks in HTML ...... 4-6 Lab 4-2: Creating externalEVALUATION hyperlinks in HTML ...... COPY .. 4-10 Lab 4-3: Using images as hyperlinks with HTML ...... 4-11 Lab 4-4: Using internal hyperlinks ...... 4-13 Lab 5-1: Creating HTML tables to organize content ...... 5-6 Lab 5-2: Customizing HTML tables with CSS formatting ...... 5-16 Lab 6-1: Studying the FormMail script ...... 6-7 Lab 6-2: Creating a simple Web form in HTML ...... 6-14 Lab 6-3: Adding a radio button group to an HTML Web form ...... 6-16 Lab 6-4: Adding check boxes to an HTML Web form ...... 6-19

© 2014 Certification Partners, LLC — All Rights Reserved. Version 2.1 viii

Lab 6-5: Adding a single-option drop-down list to an HTML Web form ...... 6-22 Lab 6-6: Adding a multiple-option select list to an HTML Web form ...... 6-25 Lab 6-7: Adding a scrolling text area box to an HTML Web form ...... 6-28 Lab 7-1: Creating a video ...... 7-4 Lab 7-2: Converting video to support HTML5 formats ...... 7-6 Lab 7-3: Adding video to an HTML5 Web page ...... 7-8 Lab 7-4: Adding audio to an HTML5 Web page ...... 7-11 Lab 7-5: Defining a client-side image map ...... 7-18 Lab 7-6: Inserting transparent GIF and PNG images in a Web page ...... 7-22 Lab 8-1: Using JavaScript to detect browser type ...... 8-13 Lab 8-2: Using simple JavaScript to create an interactive Web page ...... 8-14 Lab 8-3: Experimenting with the HTML5 canvas API ...... 8-20 Lab 8-4: Creating an offline Web application ...... 8-24 Lab 8-5: Experimenting with the geolocation API ...... 8-26 Lab 8-6: Adding drag-and–drop functionality to a Web page ...... 8-29 Lab 9-1: Creating a Web page with a GUI editor ...... 9-6 Lab 9-2: Changing font and background color with a GUI editor ...... 9-9 Lab 9-3: Adding a horizontal rule to a Web page with a GUI editor ...... 9-10 Lab 9-4: Creating bulleted and numbered lists with a GUI editor ...... 9-11 Lab 9-5: Creating external hyperlinks with a GUI editor ...... 9-12 Lab 9-6: Adding an image to a Web page with a GUI editor ...... 9-14 Lab 9-7: Creating an HTML table with a GUI editor ...... 9-15 Lab 9-8: Validating and updating HTML code generated by a GUI editor ...... 9-20 Lab 9-9: Personalizing a Web page with Google Gadgets ...... 9-33 Lab 10-1: Comparing pay-per-click (PPC) services ...... 10-10 Lab 10-2: Reviewing an SSL/TLS session ...... 10-12 Lab 10-3: Converting currency values ...... 10-15

List of Tables Table 1-1: W3C XHTML specifications ...... 1-10 Table 1-2: HTML5 family ...... 1-14 Table 1-3: Accessibility ...... 1-20 Table 1-4: Commonly used Web browsers ...... 1-31 Table 1-5: Intellectual property issues and terms ...... 1-34 Table 1-6: Configuring your own server vs. using service providers ...... 1-38 Table 1-7: Service provider hosting solutions — benefits and drawbacks ...... 1-39 Table 2-1: Text-level HTML phrase elements ...... 2-24 Table 2-2: Ordered and unordered list syntax and display ...... 2-26 Table 3-1: CSS syntax terms ...... 3-4 Table 3-2: CSS declarations and terms ...... 3-5 Table 3-3: Features common to major image file formats ...... 3-13 Table 3-4 Using CSS to align images to text ...... 3-18 Table 3-5: HTML entity codes ...... 3-22 Table 3-6: Color attributes available for various hyperlink states of anchor selector ...... 3-26 Table 4-1: URL options for external links ...... 4-4 Table 4-2: URL paths ...... 4-4 Table 4-3: Protocols in hyperlink URL references...... 4-5 Table 4-4: Troubleshooting HTML hyperlink problems...... 4-5 Table 5-1: Table element tags ...... 5-4 Table 5-2: CSS properties used for

element ...... 5-5 Table 6-1: Web form fields ...... 6-11 Table 6-2: Attributes EVALUATIONof