实例介绍
exam reference for 70-480 programming in html5 with javascript and css3
PUBLISHED BY Microsoft press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright o 2014 by Rick Delorme All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher Library of congress Control Number: 2014940678 SBN:978-0-7356-7663-3 Printed and bound in the united states of america First Printing Microsoft Press books are available through booksellers and distributors worldwide. If you need support related tothisbook,emailmicrosoftPressBookSupportatmspinput@microsoft.com.Pleasetelluswhatyouthinkof thisbookathttp://www.microsoft.com/learning/booksurvey Microsoftandthetrademarkslistedathttp://www.microsoft.com/en-us/legal/intellectualproperty/trademarks, EN-US. aspx are trademarks of the microsoft group of companies. All other marks are property of their respective owners The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred This book expresses the author's views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book Acquisitions Editor: Anne hamilton Developmental Editor: Karen Szall Editorial Production: Box Twelve Communications Technical reviewer: Todd meister Cover: Twist Creative Seattle Contents Introduction Microsoft certifications Free ebooks from Microsoft Press Errata, updates, book support le want to hear from you Stay in touch Preparing for the exam XI Chapter 1 Implement and manipulate document structures and objects Objective 1.1: Create the document structure Using HTML5 semantic markup Creating a layout container in Html Optimizing for search engines Optimizing for screen readers 17 Objective summary Objective review 21 Objective 1.2: Write code that interacts with UI controls 22 Adding or modifying HTML elements 22 I mplementing media controls 34 Implementing graphics with HTML5 <canvas> and SVG 39 Objective summary Objective revie 59 What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit www.microsoft.com/learning/booksurvey/ Objective 1.3: Apply styling to HTMl elements programmatically 60 Changing the location of an element Applying a transform Showing and hiding elements Objective summary 71 Objective review 71 Objective 1.4: Implement hTML5 APls Using the storage apl 72 Using the App Cache API 77 Using the Geolocation API 81 obj ective summary Objective review 85 Objective 1.5: Establish the scope of objects and variables Establishing the lifetime of variables and variable scope Avoiding using the global namespace 90 raging the this key Objective summary 92 Objective review 92 Objective 1.6: Create and implement objects and methods ....93 Implementing native objects 94 Creatin stom objects 95 Implementing inheritance 99 Objective summary 101 Objective review 101 Answers 102 Chapter 2 Implement program flow 111 Objective 2.1: Implement program flow 112 Evaluating expressions 112 Working with arrays 117 Implementing special types of arrays 121 Using advanced array methods 22 Implementing iterative control flow 125 Objective summary 129 Objective revie 130 Objective 2.2: Raise and handle an event 130 Using events 131 Handling DOM events 139 Creating custom events 146 bjective summa 147 Objective revie 148 Objective 2. 3: Implement exception handling 149 Implementing try.catch. finally constructs 149 Checking for null values 154 Objective summa 155 Objective review 155 Objective 2.4: Implement a callback 156 Implementing bidirectional communication with the Websocket apl 157 Making webpages dynamic with jQuery and AJAX 161 /iring up an event with jQuery 165 Implementing a callback with an anonymous function 167 Using the this pointer 169 Objective summary 170 Objective review 171 Objective 2.5: Create a web worker process 172 Getting started with a web worker process 172 Creating a worker process with the Web Worker APl Using web workers 178 Understanding web worker limitatio Configuring timeouts and intervals 180 Objective summary 181 Objective revie 181 Answers.......,,,,,,,,,,, 183 Chapter 3 Access and secure data 189 Objective 3.1: Validate user input by using HTML5 elements .190 Choosing input controls 190 Implementing content attributes 206 Objective summary 209 Objective review 210 Objective 3. 2: Validate user input by using JavaScript 211 Evaluating regular expressions 211 Evaluating regular expressions in JavaScrip 214 Validating data with built-in functions 21 Preventing code injection 216 Objective summa 217 Objective review 218 Objective 3.3: Consume data 218 Consuming json and Xml data by using web services 219 Using the XmlHttpreQueSt obj 219 Objective summa 223 Objective review 223 Objective 3.4: Serialize, deserialize, and transmit data 224 SendingdatabyusingX/lhttpRequest 224 Serializing and deserializing jSoN data 225 Serializing and deserializing binary data 225 Objective summary 228 Objective review 229 Answers 230 Chapter 4 Use CSS3 in applications 235 Objective 4. 1: Style HTML text properties .235 Apply styles to text appearance 236 Apply styles to text font 238 Applying styles to text alignment, spacing, and indentation 239 Applying styles to text hyphenation 241 Contents Applying styles for a text drop shadow 242 Objective summary 243 Objective 243 Objective 4.2: Style HTML box properties 244 Applying styles to alter appearance attributes 244 Applying styles to alter graphic effects 249 Apply styles to establish and change an element's position Objective summary 264 Objective review 265 Objective 4.3: Create a flexible content layout 266 Implement a layout using a flexible box model 266 Implementing a layout using multi-column 273 Implementing a layout using position, floating, and exclusions 276 Implementing a layout using grid alignment 280 Implementing a layout using regions, grouping, and nesting 286 Objective summary 287 Objective review 288 Objective 4.4: Create an animated and adaptive U 288 Animating objects by applying CSS transitions 289 Applying 3-D and 2-D transformations 291 Adjusting UI based on media queries 292 Hiding or disabling controls 297 Objective summa 299 Objective review 299 Objective 4.5: Find elements using CSS selectors and jQuery 300 Defining element, style, and attribute selectors 300 Choosing the correct selector to reference an element 301 Finding elements by using pseudo-elements nd pseudo-class 301 Objective summary 304 Objective re 305 Objective 4.6: Structure a CSS file by using CSS selectors 305 Referencing elements correctly 306 Implementing inheritance 307 Itance using! important 307 Styling an element based on pseudo-elements and do-class 308 Objective summary 309 Objective reviev 309 Answers 312 321 What do you think of this book We want to hear fr Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ Content Introduction The 70-480 exam is a detailed examination of your skills with using HTML5 and CSS3. This book will guide you through the necessary objectives that you are expected to know to pass this exam. It is expected that you have at least 2 years experience working with these technologies. This book is structured such that it provides a reference to the key information required for each objective. This book does not teach every concept but provides an account of the details you are expected to know for each objective covered on the exam This book covers every exam objective, but it does not cover every exam question. Only the microsoft exam team has access to the exam questions themselves and microsoft regu- larly adds new questions to the exam, making it impossible to cover specific questions. You should consider this book a supplement to your relevant real-world experience and other study materials. If you encounter a topic in this book that you do not feel completely com fortable with use the links you' ll find in text to find more information and take the time to research and study the topic. Great information is available on MSDN, TechNet, and in blogs and forums Microsoft certifications Microsoft certifications distinguish you by proving your command of a broad set of skills and experience with current Microsoft products and technologies. The exams and corresponding certifications are developed to validate your mastery of critical competencies as you desig and develop, or implement and support, solutions with Microsoft products and technologies both on-premise and in the cloud. Certification brings a variety of benefits to the individua and to employers and organizations MORE INFO ALL MICROSOFT CERTIFICATIONS For information about Microsoft certifications, including a full list of available certifica- tionsgotohttp://www.microsoft.com/learning/en/us/certification/cert-default.aspx 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论