• Complain

Jeanine Meyer [Jeanine Meyer] - HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications

Here you can read online Jeanine Meyer [Jeanine Meyer] - HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Apress, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Jeanine Meyer [Jeanine Meyer] HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications
  • Book:
    HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2018
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Build on your basic knowledge of HTML5 and JavaScript to create substantial HTML5 applications. Through the many interesting projects you can create in this book, youll develop HTML5 skills for future projects, and extend the core skills you may have learned with its companion book, The Essential Guide to HTML5.

HTML5 and JavaScript Projects is fully updated as a second edition and covers important programming techniques and HTML, CSS, and JavaScript features to help you build projects with images, animation, video, audio and line drawings. Youll learn how to build games, quizzes and other interactive projects; incorporate the use of the Google Maps API and localStorage; and address the challenges of Responsive Design and Accessibility.

Each project starts out with a description of the examples operation, often with full-color illustrations. Youll then review the HTML5 and JavaScript concepts that relate to the project followed by a step-by-step explanation of the programming used. Tables are used to show the relationship of functions and provide comments for each line of code so that you can easily apply the techniques to your own HTML5 projects.

What Youll Learn

  • Enhance your HTML5 and JavaScript programming skills.
  • Poduce applications combining Canvas drawings, photos, and videos
  • Incorporate Google Maps and geolocation into your projects
  • Build applications requiring persistent data, storing the information locally or on a database on the server
Who This Book Is For

Developers who have some knowledge of programming and want to build more substantial applications by combining basic features and combining JavaScript with other technologies.

Jeanine Meyer [Jeanine Meyer]: author's other books


Who wrote HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications? Find out the surname, the name of the author of the book and a list of all author's works by series.

HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Jeanine Meyer 2018
Jeanine Meyer HTML5 and JavaScript Projects https://doi.org/10.1007/978-1-4842-3864-6_10
10. Responsive Design and Accessibility
Jeanine Meyer
(1)
New York, USA
In this chapter, you will:
  • Learn techniques to make your interactive application usable on a variety of devices

  • Learn how to make your application accessible to people using only a keyboard and a screen reader

  • Make random multiple selections and, moreover, combine such tasks

  • See additional examples of the dynamic creation of HTML markup

Introduction

In the past, people used desktop or laptop computers, to use computer applications! Now, many people want to view and use computer applications, including web pages, on their tablets or smartphones. Moreover, many want to go to a website on all three classes of devices and have similar experiences. They also may choose to modify the dimensions of the window on a desktop or laptop or change the orientation of a mobile device. Preparing a project made using HTML, CSS, and JavaScript to adapt to the device (and the state of the device) is called responsive design . A different, but similar, objective is to prepare a project to be accessible to a variety of users. One critical challenge in this case is to make the application suitable for people with visual disabilities using a screen reader and/or people restricted to using only a keyboard. In this chapter, I describe certain techniques that will be helpful for these objectives, focusing on specific examples.

Figure shows the screenshot of an HTML and JavaScript project that adjusts to the dimensions of the device. The program operates by cycling through a sequence of images by making a stroke with a mouse on a desktop or laptop computer or with touch on a tablet or a phone.
Figure 10-1 Opening screen of reveal program Pressing down on the mouse - photo 1
Figure 10-1

Opening screen of reveal program

Pressing down on the mouse button and moving down or touching down with a finger and moving down will cause the next picture to be revealed gradually until close to the bottom. Figure shows a picture in the process of being changed.
Figure 10-2 Change underway from one picture to the next When the mouse or - photo 2
Figure 10-2

Change underway from one picture to the next

When the mouse or finger is close enough, the whole next picture appears. Similarly, the user/player can move the mouse or finger up the screen and get the previous picture appearing. I encourage the reader to experiment with the source code.

Figure shows a screenshot of a quiz game that can be operated by mouse or touch or the keyboard alone. The set of four countries is selected randomly from the G20 countries and the corresponding capitals are mixed up, so you will see a different set of items each time. The quiz can be taken using just the keyboard and a screen reader program, with the tab key taking the player from item to item, making it suitable for someone with limited or no visual ability and/or someone unable to use a mouse or touch.
Figure 10-3 Opening screen for countrycapital quiz The Action and Score - photo 3
Figure 10-3

Opening screen for country/capital quiz

The Action and Score fields indicate the performance so far. The boxes do change color and move to next to the matched box to make it more interesting for the visually able. The yellow/gold color is used when a match is correct. As indicated in the instructions, a video is played when the player correctly makes four matches. Figure shows a screenshot.
Figure 10-4 Screenshot successful completion of quiz The video has sound so - photo 4
Figure 10-4

Screenshot successful completion of quiz

The video has sound so the visually impaired gets the reward as well.

Note

Screen readers are complex and provide options for customizing use. One screen reader I used spoke the names of the countries and capitals by themselves but another added the term group, which was tiresome. It is possible to use the Tab key with the Shift key to go back and forth hearing the country and capital names. However, screen readers do read the whole screen, including everything on my browser toolbar and this was repeated when clicking on the Tab key past the end of the document. My example shows how to include Tab information in dynamically generated HTML markup. I strongly recommend that when you continue your exploration of the use of screen readers and keyboard operation, study static HTML pages first and then move on to programs with dynamically generated HTML elements.

Critical Requirements

Before going into specific technical features, it is important for developers to consider the most important target audience of a planned application and the feasibility of the application in different situations. There is a notion called mobile first that recommends that the best approach if something is to be available on a mobile device is to design and plan the mobile implementation first as opposed to designing and implementing for a desktop and then making adjustments. Starting with the problem specification, including the most common device and user, and formulating a solution is a good strategy. Teachers and book authors often do something quite different: start with concepts and features we want to explain and design what we believe are interesting programs that use the features.

When youre designing a web application , it is important to consider that certain programs, such as ones featuring geolocation, are best for mobile. In contrast, a program requiring considerable text entry is best suited for desktops and laptops. A jigsaw puzzle is not for the visually impaired. However, the country/capital quiz , which I originally made for mouse or touch, can be adapted for keyboard operation. Thinking about different screens and different audiences can be a valuable way to determine what is critical for your application and the process of working toward responsive design and improving accessibility can benefit all audiences.

In this chapter, I focus on adapting to screen dimensions, ensuring that touch works in addition to or in place of a mouse, and supporting screen reader and keyboard-only operation for at least some applications. I also wanted to allow the user to resize and resize again the window to arbitrary width and height.

I will mention briefly features that can be useful for a variety of websites, generally having a static design.

Screen Size and Dimension

You may expect to see code that checks for specific devices or device types by name, but that is not the recommended approach for many situations. Instead, if the critical properties to examine include screen width and screen height, then these measurements are checked directly. There are various ways to do that in HTML element properties, CSS rules and directives, and JavaScript code. You can learn, or at least be introduced to, many of the details in the HTML, CSS, and JavaScript features section.

Touch

Mobile devices typically do not have a mouse but instead depend on touch . The interpretation of a touch as a mouse click comes for free, that is, no additional coding is required and will be demonstrated in the Quiz example. The Reveal application, which is based on a mouse down, mouse move, and mouse up sequence of operations requires JavaScript code to support touch. The technique is to set up the touch events to simulate the appropriate mouse events.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications»

Look at similar books to HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications»

Discussion, reviews of the book HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.