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,

Slides:



Advertisements
Similar presentations
Iframes & Images Using HTML.
Advertisements

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.
Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.
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.
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.
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.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
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
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.
HTML Boot Camp: Rules and Images
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
IT Introduction to Website Development Welcome!
Chapter 7 Graphics and Color. 2 Principles of Web Design Chapter 7 Objectives Understand the differences between the Web-based image file formats - GIF,
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
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.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
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.
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.
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.
CHAPTER 21: IMAGES. IMAGE SOURCES 3 options: Create your own images Find images Hire someone to make images.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
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
Inserting and Working with Images
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:

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, SVG, is not yet in common use. You can currently use only three image file formats on the Web: GIF, JPG, and PNG. A new format, SVG, is not yet in common use. These formats all compress images to create smaller files. Knowing which file format to use for which type of image is important. 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 If you choose the wrong file type, your image won’t compress or display properly

GIF Format GIF uses a lossless compression technique, meaning that no color information is discarded when the image is compressed 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 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 GIF excels at compressing and displaying flat color areas, making it the logical choice for line art and color graphics

GIF Transparency With GIF files, you can choose any one color in an image to appear as transparent in the browser 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 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 Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle

GIF Animation The GIF format lets you store multiple images and timing information about the images in a single file 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 This means that you can build animations consisting of multiple static images that play continuously, creating the illusion of motion

JPG Format JPG is best for photographs or continuous tone images JPG is best for photographs or continuous tone images JPGs are 24-bit RGB images that allow millions of colors 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. 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.

JPG Format When you create the JPG file, you can also manually balance the amount of compression versus the resulting image quality 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. 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 Many photos can sustain quite a bit of compression while still maintaining image integrity

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

SVG Format A new standard from the W3C A new standard from the W3C A language for describing two-dimensional graphics using XML A language for describing two-dimensional graphics using XML SVG graphics are scalable to different display resolutions and are printable SVG graphics are scalable to different display resolutions and are printable Not yet supported by most browsers Not yet supported by most browsers

Interlacing & Progressive Display Most Web-capable graphics editors let you save images in an interlaced or progressive format 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 You can choose this display option when creating GIF, PNG, and JPG files GIF and PNG files use interlacing, while JPGs use progression GIF and PNG files use interlacing, while JPGs use progression

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 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

Where You Can Find Images Stock photo collections Stock photo collections Digital cameras Digital cameras Scanner Scanner Public-domain Web sites Public-domain Web sites Clip art Clip art Create your own Create your own Remember to respect copyright laws! Remember to respect copyright laws!

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. 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 JPG: Use JPG for all 24-bit full color photographic images, as well as more complicated graphics that contain color gradients, shadows, and feathering

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. 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.

Color Depth The amount of data used to create color on a display is called the 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 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 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

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 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 is an empty element, so never use a closing tag with it

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. 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.

Specifying alt and title Text The alt text is displayed if the image does not appear, providing a description of the image The alt text is displayed if the image does not appear, providing a description of the image The title text appears as a pop-up when the user places the cursor over the image The title text appears as a pop-up when the user places the cursor over the image

Specifying width and height Every element on your site should contain width and height attributes 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 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 your pages download to the user, especially at slower connection speeds This information dramatically affects the way your pages download to the user, especially at slower connection speeds

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 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

Removing the Hypertext Border When you create a hypertext image, the browser’s default behavior is to display the hypertext border around the image 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 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 To remove the hypertext border, add the border=“0” attribute to your tag

Aligning Text and Images You can align text along an image border using the align attribute 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 Text and image alignment defaults to bottom alignment, which means the bottom of the text aligns with the bottom edge of the image Valid values are: top, middle, bottom, left, right Valid values are: top, middle, bottom, left, right

Adding White Space Add white space around your images to reduce clutter and improve readability 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 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

Using Single-Pixel Rules Single-pixel lines or rules work exactly like transparent pixel GIFs, except they are a single color rather than transparent 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 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 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

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 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. 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 If your site includes a lot of text, avoid dark or overly complex backgrounds

CSS Background Properties Cascading Style Sheets allow you more control over background image tiling than standard HTML 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 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 The CSS background-repeat property allows you to create a single column or row of the image, rather than tiling completely across the page

Hexadecimal Colors HTML uses hexadecimal numbers to express RGB color values 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 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 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

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

Using Background Colors One of the simplest ways to work with hexadecimal color is to specify a background color for your pages 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 Use the bgcolor attribute in the element, or with Cascading Style Sheets, use the background-color property with body as the selector

Using Background Colors You can use background color in tables for different purposes, and all by using the bgcolor attribute You can use background color in tables for different purposes, and all by using the bgcolor attribute The table, table row, table header, and table data elements all accept the bgcolor attribute The table, table row, table header, and table data elements all accept the bgcolor attribute

Graphics Summary Remember that the final destination is the monitor, not the printed page, so design accordingly 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 a CD-ROM, always change the final resolution to 72 dpi. Most monitors have a resolution of 72 dpi. If you are creating or scanning images, or when you import images from a CD-ROM, always change the final resolution to 72 dpi.

Graphics Summary Continued 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. 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 Use the cache by reusing graphics as much as possible

Graphics Summary continued Work with a limited Web-safe palette when creating graphics Work with a limited Web-safe palette when creating graphics Test your work! Browsers and computing platforms render colors differently. Test at different color depths also. Test your work! Browsers and computing platforms render colors differently. Test at different color depths also.