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.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

Chapter 4 Adding Images. Inserting and Aligning Images Graphics refer to the appearance of most non- text items on a web page, such as: – Photographs.
Iframes & Images Using HTML.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Add Images to Improve Your Presentation Day 8. You will learn to Understand Graphics Formats Find Graphics Create Your Own Images Insert an Image on Your.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
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.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Web Development & Design Foundations with HTML5
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
HTML Boot Camp: Rules and Images
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
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.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Forms. Forms Forms are used for e-commerce, online purchases, surveys, registrations, etc. Website using forms usually collect information and must use.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Tables 23 rd February. What XHTML have we done so far? Hyperlinks & anchors - XHTML supports 3 types of lists:  Ordered – +  Unordered – +  Definition.
Frames 2 nd March. Write the code for this using tables and using layers …..
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.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Lecture 15. A Very Brief Introduction to HTML and XHTML, part IV Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Kevin Murphy Images and Web Pages Masters Project CS 490.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
REEM ALMOTIRI Information Technology Department Majmaah University.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
Frames 8th March.
Inserting and Working with Images
2.01 Understand Digital Raster Graphics
Web Development & Design Foundations with HTML5 8th Edition
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts Copyright © 2018 Terry Ann Morris, Ed.D.
2.01 Understand Digital Raster Graphics
Chapter 5 Graphics & Text Styling Basics Key Concepts
DREAMWEAVER MX 2004 Chapter 4 Working with Images
Web Development & Design Foundations with H T M L 5
2.01 Understand Digital Raster Graphics
Adding Images.
Adding Images.
Adding Images.
Adding Images.
Presentation transcript:

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 Important issues to consider are image complexity and file-size General rules to be followed:  Use images to enhance page layout and content  Keep image complexity low  Use thumbnail versions of images to reduce download time  Use icons and logos to distinguish the web page

General Information Computer screen is divided horizontally and vertically into pixels  Example: a monitor with a resolution of 800x600 has 800 and 600 pixels in the horizontal and vertical directions respectively

4 Types of Graphics Graphic types commonly used on Web pages:  GIF  JPG  PNG

5 GIF Graphics Interchange Format Best used for line art and logos Maximum of 256 colors One colour can be configured as transparent Can be animated Uses lossless compression Can be interlaced

6 JPEG Joint Photographic Experts Group Best used for photographs Up to 16.7 million colors Use lossy compression Cannot be animated Cannot be made transparent Progressive JPEG – similar to interlaced display

7 PNG Portable Network Graphic Support millions of colors Support multiple levels of transparency (but browsers do not -- so limit to one transparent color for Web display) Support interlacing Use lossless compression Combines the best of GIF & JPEG Browser support is growing

Images Images take a long time to load so JPEG and GIF formats allow progressive loading of images  Progressive JPEG  Interlaced GIF Images are loaded with gradual resolution Transparency allows the viewer to see the background of a Web page through the part of the image that is transparent

Image Scaling Users can scale images up or down by using an image program or XHTML tags Why would it not be recommended to scale images up?  Resolution will worsen  Staircase effect (jaggedness of the image boundaries)

10 XHTML Image Element Configures graphics on a Web page src Attribute  File name of the graphic alt Attribute  Configures alternate text content (description) height Attribute  Height of the graphic in pixels width Attribute  Width of the graphic in pixels

XHTML Alignment

XHTML More Attributes Adding Vertical Space  vspace Attribute Adding Horizontal Space  hspace Attribute A more modern approach is to use the CSS padding property

Accessibility & Images Required:  Configure the alt attribute Alternate text content to convey the meaning/intent of the image NOT the file name of the image Use alt=“” for purely decorative images Optional:  Configure the longdesc attribute Used when meaning cannot be conveyed in the alt text Usually a URL to a Web page with text

14 Image Links To create an image link use an anchor element to contain an image element Home

Using Images A web page that uses an image – School of Computing Homepage (

Choosing Names for Image Files Use all lowercase letters Do not use punctuation symbols and spaces Do not change the file extensions (should be.gif,.jpg,.jpeg, or.png) Keep your file names short but descriptive  i1.gif is probably too short  myimagewithmydogonmybirthday.gif is too long  dogbday.gif may be just about right

17 Organizing Your Site Place images in their own folder Code the path to the file in the src atttribute

Other Image Topics Thumbnail Images Image Maps Sources for Graphics Guidelines for Using Images Accessibility

19 Thumbnail Image A small image configured to link to a larger version of that image.

Image Maps An image map is defined as a single image that links to multiple URLs or XHTML documents They allow us to link different parts of an image to different web pages Image maps are both client and server-side based Examples are roadmaps and layouts

Image Maps (example) Triangle.html Rectangle.html Circle.html

Types of Image Maps There are 2 types of image maps : Server side  Requires client-server communication twice  Server side maps existed before the client maps Client side  Client resolves the click locally and then requests the web page  Web authors should use client-side image maps in their web pages

Creating Image Maps Create the image Define the virtual shapes of the map Configure the image map Create the XHTML files (URLs)

Creating Image Maps XHTML provides 3 virtual shapes  Rectangle  Polygon  Circle Each of the virtual shapes can be defined by a set of points The image software can be used to find the co-ordinates of the points used to define the virtual shape

25 Image Maps element  Defines the map element  Defines a specific area on a map  Can be set to a rectangle, circle, or polygon href Attribute shape Attribute coords Attribute

Sample Image Map

Write the XHTML code for the image map in the next slide Rectangle, coords are 10,25,90,60 Polygon, coords are 100,60,210,60,150,10 Circle coords are 252,40,35 Use the 3 tags, and

Write the XHTML code for this Restaurant Image Map Appetiser as rectangle Meals as triangle Pizza as circle

Using Image Maps The tag is used to define an image The tag is used to define one virtual shape at a time

30 Sources for Graphics Create them yourself using a graphics application:  Adobe Photoshop  Adobe Fireworks  Google’s Picasa ( Download graphics from a free site Purchase/download professional-quality graphics Purchase a graphics collection on a CD Take digital photographs Scan your photographs Scan your drawings Hire a graphic designer to create graphics

31 Guidelines for Using Images Consider image load time Reuse images Consider image file size with image quality Screen Resolution Specify dimensions Gamma – brightness & contrast

32 Images and Accessibility Don't rely on color alone.  Some visitors may have colour perception deficiencies. Use high contrast between background and text color. Provide a text equivalent for non-text elements.  Use the alt attribute on your image elements If your site navigation uses image links, provide simple text links at the bottom of the page.

Reference Steven M. Schafer (2005), HTML, CSS, JavaScript, Perl, and PHP Programmer's Reference, Hungry Minds Inc,U.S. Dan Cederholm (2005), Bulletproof Web Design: Improving Flexibility and Protecting Against Worst-Case Scenarios with XHTML and CSS, New Riders. Ibrahim Zeid (2004), Mastering the Internet, XHTML, and Javascript