Objectives

Chapter 4: Visual Elements and Graphics

  • Create and format lines and borders on web pages
  • Decide when to use graphics and what graphics are appropriate
  • Apply the image element to add graphics to web pages
  • Optimize an image for web page display
  • Configure images as backgrounds on web pages
  • Configure images as hyperlinks
  • Configure rounded corners, box shadow, text shadow, opacity, and gradients with CSS3
  • Configure RGBA color with CSS3
  • Configure HSLA color with CSS3
  • Use HTML5 elements to caption a figure
  • Use the HTML5 meter and progress elements
  • Find free and fee-based graphics sources
  • Follow recommended web design guidelines when using graphics on web pages
Assignments and Due Dates

Assignments and Due Dates: View

Required Readings

Web Development & Design Foundations with HTML5 - 7th Edition by Terry Felke-Morris
Chapter 4: Visual Elements and Graphics

Required Tutorials
  1. Text's Companion Website - VideoNotes: http://wps.pearsoned.com/ecs_felke_webdevdesf_7/
    (Page number indicates related page in the textbook)
    • Chapter 4: CSS Background Images (Page 151)
    • Chapter 4: Rounded Corners with CSS (Page 167)
Sample Code and/or Data Files
  • Textbook's Chapter and Web Site Case Study Data Files
    • http://wps.pearsoned.com/ecs_felke_webdevdesf_7/243/62410/15977113.cw/index.html
    • Click on Student Resources
      Click on Student Data Files in left margin
    • Download the Zip file for the current chapter
    • Extract/unzip the file
    • Chapter files will be visible or accessible by opening various folders
    • "If" needed for this chapter's Case Study Hands-On, the files for Pacific Trails are located in the casestudystarters/pacific folder.
Supplemental Materials
  1. PowerPoint from Text: Chapter 4 - View (ppt) | Print (pdf)
  2. Author's Web Site: http://www.webdevfoundations.net/7e /chapter4.html
    (Scroll to the bottom of each chapter's web page for the chapter updates AKA errata sheet )
  3. Textbook's Website: http://wps.pearsoned.com/ecs_felke_webdevdesf_7/
  4. (The access code is located in the front of the text. For those with used text's the code is available online. Click on the link above.)
Software

The following software is not need specifically for this week's activities. However, you may need this software for use with your final project and other web development activities, so this week might be a good week to do a little exploration and adding some of the links to your list of bookmarks.

Professional Software:

  • Adobe Photoshop
  • Adobe Fireworks

Free or Online Software

Notice: This list of software is informational only. No formal class instructions will be included on any of the items. While the software appears to be reliable and safe, as with any online websites, students will be accessing and using them at their own risk. No tech support is provided by the college.

Chapter Questions and Test Reviews

Chapter 6 Reviews:
Although no points are earned for the Quizlet tests, it is highly recommended that students know the answers. It is an excellent way to prepare for both the weekly quizzes and major tests.

Test 2 Review Sheet: Test 2 Review
It is highly recommended that students work through the test review sheets as each chapter is studied. It will help with learning the material and may reduce the amount of study time required for the major tests.

Required Assignments

WSD05: PacificTrails-Visuals (Publish to Apollo, submit the URL in the LMS)
QUIZ: Chapter 04 (LMS)

Professor's Class Notes and Comments

This week...

Color was great, but now lets add some images!!! It is really easy for this to be a very time consuming week. There are so many items to see, so many things to try. It reminds me of a kid in Willie Wonka's candy factory. So be sure to pace yourself. But that does not mean you cannot go back later when you have time.

The use of images, to me, is one items that separates the newbies from the professionals. So pay close attention to topics such as resizing images, using borders in image links, the use of thumbnails and actually all of the topics.

There are several issues that I need to emphasize:


Chapter 4:

p.139 FAQ My web page looks different in some browsers. What can I do?

Top 5 HTML5 Compatibility Charts for Web and Mobile Developers
       http://mightydigital.com/top-5-html5-compatibility-charts-web-mobile-developers/

p. 141 Compression and Optimization

The text has some examples but it was thought that seeing color images may help. Check out the following.

p. 144 FAQ: What if I don't know the height and width of an image?

One way of determine the height and width of an image is to insert it into a web page as the text explains, but there are other ways.

Windows: To determine the height/width of an image view the image in Windows Explorer in either the Tiles or Thumbnails view

ThumbnailsThumbnail

Mac: In Finder, use the column format, then preview the image.

Mac Finder

It is possible to change the height and width properties in a web page and the image will appear at the new size. This, however, is NOT recommended. First the image may be distorted either looking stretched or pixilated (image is displayed in a arrangement of colored squares). The image needs to be resized using a graphics program. If you do not own a program such as Photoshop, try the options listed under Software above.

p. 144 Image Hyperlinks

The text mentions that when a graphic is a link, if it has border="1" (or higher), the graphic will have an outline. This can looks very unprofessional. It is recommended that a CSS rule be created that can then be applied as needed to images that are links.

Take a moment and view this image link demo

p. 145 Hands On Practice 4.3

In the examples in the text, graphics are stored in the root directory (the main folder, the same folder as the web pages). This can become very cumbersome. It is best to create an images folder inside of the main folder to hold the image files. It is not necessary to do this for the tutorials in the text. However, for the assignments and the final project all multimedia files must be in their own folder. For this week's assignment, use Finder(Mac) or Computer(Windows) to create a folder inside of the pacific04 folder. The name of the folder will be images. This is where the images will be located. Then when writing code to include one of those images the <img> tag would be similar to the following:

<img src="images/trilliumbanner.jpg" height="86" width="700" alt="Trillium Medi Design"/>

Notice that images/ has been added to the code. Images is the name of the folder holding the image files.

p. 147 Optimize an Image for the Web

Software:

p. 156 Image Maps

Interactive example at W3Schools.com


p. 158 The Favorites Icon

Using the link approach also allows for different icons for different pages within a website. Including the icon in the root directory would mean all pages have the same icon.

Software

p. 160 Sources of Graphics: Focus on Ethics

Read this section carefully. Just because it is on the web, does NOT mean it can be copied and reused. Copyright laws DO apply.

p. 162 4.8 CSS3 Visual Effects

CSS Click Chart - great resource that includes demos, examples, informational links, and browser support for CSS3 visual effect properties. Consider adding this to your bookmarks.
http://css3clickchart.com

HTML5 and CSS3 Browser Support - great chart!
http://www.findmebyip.com/litmus

p. 165, FAQ - CSS Validation

    Browser-specific prefixes such as those listed below will will not validate using CSS2 validation.

    -moz for Mozilla
    -webkit for Chrome and Safari
    -o for Opera
    -khtml for Konqueror

    Assignments using CSS3 must still validate when using FireFox's Web Developer Toolbar.

    REMINDER: By default, at the time of this writing, FireFox's Web Developer's CSS Validation is set to CSS2.1. It is a simple fix to update it. In the Developer Tool Bar, click on Tools | Edit Tools. Select Validate CSS and then click on the Edit button at the bottom of the dialog box. If not selected, choose the radio button next to URL. Change the URL as indicated below. Click on OK and the close the Tools dialog box. You may need to restart the browser. This also seems to alleviate some of the errors associated with webkit and moz (These extensions will be used in WSD05 Assignment.)

    http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=
    http://jigsaw.w3.org/css-validator/validator?profile=css&warning=0&uri=

p. 173 CSS3 RGBA Color

A fun site to play with Color: Hex, RGB, RGBA, HSLA and see the codes for each type.
http://www.workwithcolor.com/


Be sure to check out the Supplemental Resources and Software tabs above.
There are links to some great resources!