Chapter 7 Graphics and Color. 2 Principles of Web Design Chapter 7 Objectives Understand the differences between the Web-based image file formats - GIF,

Slides:



Advertisements
Similar presentations
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Advertisements

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Choosing an Image Format Image Sizes Bits Per Pixel Graphic Tips Image Tag Attributes Line.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Tutorial 3 Designing a Web Page.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Create Unordered and Ordered lists Cascading Style Sheets Insert and align Graphics Image enhancements Background images and site maintenance Working with.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Chapter 4 Adding Images. Inserting and Aligning Images Using CSS When you choose graphics to add to a web page, it’s important to use graphic files in.
Creating the pages Part Five Graphics. File Format Basics You can currently use only three image file formats on the Web: GIF, JPG, and PNG. A new format,
Chapter 1 Understanding the Web Design Environment
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
File Formats The most common image file formats, the most important for cameras, printing, scanning, and internet use, are JPG, TIF, PNG, and GIF.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
Chapter 8 Graphics and Color
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
Tutorial 3: Working with Images. Objectives Session 3.1 – Identify the differences among image file types – Evaluate the purpose of alternative text –
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Week 8 Graphics and Color. 8-2 Understanding Graphic Files Formats.
IT Introduction to Website Development Welcome!
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
1 Mastering the Internet and HTML Images and Image Tags.
Day 4.  Assignment 1 Due  Assignment 2 Posted Assignment 2 Posted  Due Feb 9:35 AM  3 8:30 AM  Today we will look at creating and using.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Images & Image Maps 16 th February. Images & Image Maps Web authors can add icons, logos and high impact images to their pages Images enhance web pages.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Adding Images Learning Web Design: Chapter 7. Using an Image Images have many purposed on a Web site Used as a static image To add illustration: ex. A.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
Macromedia Dreamweaver MX 2004 Design Professional And Graphics WORKING WITH TEXT.
COS 125 Day 4. Agenda Assignment 1 Due Assignment 2 Posted –Due Feb 9:35 AM Today we will look at creating and using images Examples –
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
Section 8.1 Section 8.2 Create a custom theme Design a color scheme
CNIT 131 Graphics.
Exploring Computer Science - Lesson 3-4
Exploring Computer Science - Lesson 3-4
Computer Graphics Different Images File.
Exploring Computer Science - Lesson 3-4
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Chapter 8 Graphics and Color
Web Programming– UFCFB Lecture 7
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Presentation transcript:

Chapter 7 Graphics and Color

2 Principles of Web Design Chapter 7 Objectives Understand the differences between the Web-based image file formats - GIF, JPG, and PNG Know which type of file format to use for which type of image Understand the basics of computer color

3 Principles of Web Design Chapter 7 Objectives Use the element and attributes to effectively display images Use hexadecimal color values to add color to your pages

4 Principles of Web Design Chapter 7 File Format Basics You can currently use only three image file formats on the Web: GIF, JPG, and PNG. These formats all compress images to create smaller files. Knowing which file format to use for which type of image is important. If you choose the wrong file type, your image won’t compress or display properly.

5 Principles of Web Design Chapter 7 GIF Format GIF uses a lossless compression technique, meaning that no color information is discarded when the image is compressed The color depth of GIF is 8-bit, allowing a palette of no more than 256 colors GIF excels at compressing and displaying flat color areas, making it the logical choice for line art and color graphics

6 Principles of Web Design Chapter 7 GIF Transparency With GIF files, you can choose any one color in an image to appear as transparent in the browser. The background color or pattern will show through the areas that you have designated as transparent. Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle.

7 Principles of Web Design Chapter 7 GIF Transparency Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle.

8 Principles of Web Design Chapter 7

9 Principles of Web Design Chapter 7 GIF Animation The GIF format lets you store multiple images and timing information about the images in a single file. This means that you can build animations consisting of multiple static images that play continuously, creating the illusion of motion.

10 Principles of Web Design Chapter 7

11 Principles of Web Design Chapter 7

12 Principles of Web Design Chapter 7 JPG Format JPG is best for photographs or continuous tone images. JPGs are 24-bit RGB images that allow millions of colors. JPGs use a “lossy” compression routine especially designed for photographic images. When the image is compressed, some color information is discarded, resulting in a loss of quality from the original image.

13 Principles of Web Design Chapter 7 JPG Format When you create the JPG file, you can also manually balance the amount of compression versus the resulting image quality. The higher the compression, the lower the image quality. You can play with this setting to create files that are as small as possible but still look good. Many photos can sustain quite a bit of compression while still maintaining image integrity.

14 Principles of Web Design Chapter 7

15 Principles of Web Design Chapter 7 PNG Format A royalty-free file format that is intended to replace GIF This lossless format compresses 8-bit images to smaller file sizes than GIF PNG supports transparency and interlacing but not animation

16 Principles of Web Design Chapter 7 Interlacing & Progressive Display Most Web-capable graphics editors let you save images in an interlaced or progressive format. You can choose this display option when creating GIF, PNG, and JPG files. GIF and PNG files use interlacing, while JPGs use progression.

17 Principles of Web Design Chapter 7 Interlacing & Progressive Display Interlacing and progressive display are generally the same thing—the gradual display of a graphic in a series of passes as the data arrives in the browser.

18 Principles of Web Design Chapter 7

19 Principles of Web Design Chapter 7 Where You Can Find Images Stock photo collections Digital Cameras Scanner Public-domain Web sites Clip art Create your own Remember to respect copyright laws!

20 Principles of Web Design Chapter 7 Which format? GIF: The everyday file format for all types of simple colored graphics and line art. Use GIF sparingly for its animation capabilities to add visual interest to your pages. GIF’s transparency feature lets you seamlessly integrate graphics into your Web site. JPG: Use JPG for all 24-bit full color photographic images, as well as more complicated graphics that contain color gradients, shadows, and feathering.

21 Principles of Web Design Chapter 7 Which format? PNG: If the browsers are supporting it, use PNG as a substitute for GIF. Because PNG doesn’t compress your 24-bit images as well as JPG, don’t use it for photos.

22 Principles of Web Design Chapter 7 Color Depth The amount of data used to create color on a display is called the color depth. If your users have a 24-bit color display, they can appreciate the full-color depth of your images. But many monitors cannot display 24-bit images. If your monitor doesn’t support the full color depth of an image, the browser must resort to mixing colors that attempt to match the original colors in the image.

23 Principles of Web Design Chapter 7

24 Principles of Web Design Chapter 7 Using the element By definition, is a replaced element, meaning that the browser replaces the element with the image file referenced in the SRC attribute. is an empty element, so never use a closing tag with it.

25 Principles of Web Design Chapter 7 Using the element The browser treats the image as it treats a character: normal image alignment is to the baseline of the text. Images that are within a line of text must have spaces on both sides, or the text will touch the image.

26 Principles of Web Design Chapter 7

27 Principles of Web Design Chapter 7 Specifying ALT text The ALT text is displayed if the image does not appear, providing a description of the image. In both Internet Explorer 4.0/5.0 and Netscape 4.0, the ALT text also appears as a pop-up when the user places the cursor over the image.

28 Principles of Web Design Chapter 7

29 Principles of Web Design Chapter 7 Specifying WIDTH and HEIGHT Every element on your site should contain width and height attributes. These attributes provide important information to the browser by specifying the amount of space to reserve for the image. This information dramatically affects the way the your pages download to the user, especially at slower connection speeds.

30 Principles of Web Design Chapter 7

31 Principles of Web Design Chapter 7

32 Principles of Web Design Chapter 7

33 Principles of Web Design Chapter 7 Sizing Graphics for the Page One of the easiest ways to make your graphics download quickly is to keep their dimensions small and appropriate to the size of the page.

34 Principles of Web Design Chapter 7

35 Principles of Web Design Chapter 7 Removing the Hypertext Border When you create a hypertext image, the browser’s default behavior is to display the hypertext border around the image This border is often unnecessary as users often use their mouse to point to each image to see if the hypertext cursor displays To remove the hypertext border, add the BORDER=0 attribute to your tag

36 Principles of Web Design Chapter 7

37 Principles of Web Design Chapter 7 Aligning Text and Images You can align text along an image border using the ALIGN attribute Text and image alignment defaults to bottom alignment, which means the bottom of the text aligns with the bottom edge of the image To remove the hypertext border, add the BORDER=0 attribute to your tag Valid values are: top, middle, bottom, left, right

38 Principles of Web Design Chapter 7

39 Principles of Web Design Chapter 7

40 Principles of Web Design Chapter 7 Adding White Space Add white space around your images to reduce clutter and improve readability To increase the white space around an image, you can add the VSPACE and HSPACE attributes to the element, and set the values to a pixel amount

41 Principles of Web Design Chapter 7

42 Principles of Web Design Chapter 7

43 Principles of Web Design Chapter 7 Using Transparent Spacer GIFs The transparent pixel GIF can solve spacing problems that cannot be solved with standard HTML You can use the WIDTH and HEIGHT attributes to change the spacer to any size you desire

44 Principles of Web Design Chapter 7

45 Principles of Web Design Chapter 7 Using Single-Pixel Rules Single-pixel lines or rules work exactly like transparent pixel GIFs, except they are a single color rather than transparent You can change a single-pixel rule to any size by using the WIDTH and HEIGHT attributes This creates reusable graphics of horizontal or vertical lines of varying thickness that you can use in many ways in your Web pages to enhance your layout

46 Principles of Web Design Chapter 7

47 Principles of Web Design Chapter 7 Using Background Images You can use the BACKGROUND attribute to the element to tile images across the background of a Web page. You can use any image as a background graphic, though many are not appropriate for the task. In too many Web sites, complicated background graphics distract the user. If your site includes a lot of text, avoid dark or overly complex backgrounds.

48 Principles of Web Design Chapter 7

49 Principles of Web Design Chapter 7

50 Principles of Web Design Chapter 7

51 Principles of Web Design Chapter 7 CSS Background Properties Cascading Style Sheets allow you more control over background image tiling than standard HTML To apply a background image, use the element as the selector with the BACKGROUND property The CSS BACKGROUND-REPEAT property allows you to create a single column or row of the image, rather than tiling completely across the page

52 Principles of Web Design Chapter 7

53 Principles of Web Design Chapter 7

54 Principles of Web Design Chapter 7

55 Principles of Web Design Chapter 7 Hexadecimal Colors HTML uses hexadecimal numbers to express RGB color values Hexadecimal numbers are a base-16 numbering system, so the numbers run from 0 through 9 and then A through F Hexadecimal color values are six-digit numbers; the first two define the red value, the second two define the green, and the third two define the blue

56 Principles of Web Design Chapter 7 Hexadecimal Colors Browser safe hexadecimal colors are always made up of the following 2-digit color values: 00, 33, 66, 99, CC and FF

57 Principles of Web Design Chapter 7 Using Background Colors One of the simplest ways to work with hexadecimal color is to specify a background color for your pages. Use the BGCOLOR attribute in the element, or with Cascading Style Sheets, use the BACKGROUND- COLOR property with BODY as the selector.

58 Principles of Web Design Chapter 7 Using Background Colors You can use background color in tables for different purposes by using the BGCOLOR attribute. The table, table row, table header, and table data elements all accept the BGCOLOR attribute.

59 Principles of Web Design Chapter 7

60 Principles of Web Design Chapter 7

61 Principles of Web Design Chapter 7

62 Principles of Web Design Chapter 7 Summary Remember that the final destination is the monitor, not the printed page, so design accordingly. Most monitors have a resolution of 72 dpi. If you are creating or scanning images, or when you import images from CD-ROM, always change the final resolution to 72 dpi.

63 Principles of Web Design Chapter 7 Summary Reduce image size to the appropriate dimensions for a Web page. If you must use a larger image, let the user view a thumbnail first, and provide the file size information. Use the cache by reusing graphics as much as possible.

64 Principles of Web Design Chapter 7 Summary Work with a limited Web-safe palette when creating graphics. Test your work! Browsers and computing platforms render colors differently. You should test at different color depths as well.