Instructor: A. Burns 1 HTML Images. Instructor: A. Burns 2 Inserting a Graphic Images can be displayed in two ways: as inline images or as external images.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Five Working with Images.
Advertisements

Working with Images and HTML
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.
Chapter 17 Creating Images for the Web. Chapter Lessons Learn about Web features Optimize images for Web use Create a button for a Web page Create slices.
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.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
AdvWeb-1/12 DePaul University SNL 262 Web Page Design Chapt 10 - Putting Graphics on A Web Page Instructor: David A. Lash.
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.
Images. Image File Formats All browsers support All browsers support –GIF (Graphic Interchange Format)  limited to 256 colors  lossless compression.
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.
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.
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
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.
Graphic images for computers Stored in files of binary data - Binary blobs Software has to know the binary format to decode the file and render an 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.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
CIT 256 Dreamweaver Intro. Dr. Beryl Hoffman. Start Dreamweaver Start from Start Menu/Adobe Master Collection CS6/ Adobe Dreamweaver CS6 Choose Create.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Images in web pages. Images Why do we use images? They add interest, and keep the user from being bored They convey information –Charts are easier to.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
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 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Introduction to Web Design Web publishing HTML basics Web design principles Multimedia on the Web.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
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.
1 Using HTML and JavaScript to Develop Websites. Using Images.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
Internet Applications Development Lecture 4 L. Obead Alhadreti.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
FILE TYPES FOR WEB DESIGN 1 HOW SHOULD I SAVE?. GRAPHICS INTERCHANGE FORMAT (GIF) Best used for flat-color, sharp-edged art or text Clip art, logos Compression.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
WWW, Web Design, Multimedia Winny Wang Image Types.
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.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
HTML III ECT 270 Robin Burke.
Hosted by Coach Slanina
Introduction to Programming the WWW I
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
Photoshop: Creating and Preparing Images for the Web
Adding Images.
Adding Images.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Hyperlinks, Images, Comments, and More…
Adding Images.
Adding Images.
Presentation transcript:

Instructor: A. Burns 1 HTML Images

Instructor: A. Burns 2 Inserting a Graphic Images can be displayed in two ways: as inline images or as external images.  an inline image displays directly on the Web page and is displayed when the page is accessed by a user  an inline image can be placed on a separate line in your HTML code, or it can be placed directly within a line of text  An external image needs an external application to be viewed

Instructor: A. Burns 3 Inline Images Three graphic file types are supported by today's browsers.  GIF (AKA Compuserve GIF) - Graphic Interchange Format  JPEG - Joint Photographic Experts Group  PNG - Portable Network Graphics

Instructor: A. Burns 4 GIF GIF files are best used for images that have broad areas of flat color and are highly defined. Supports transparency and animation Supports a maximum of 256 colors called 8- bits. They are cross platform They are compressed

Instructor: A. Burns 5 GIF The great advantage of GIF is that you can choose to have one color that is transparent  That is, lets the background color of a page show through part of the image Another important advantage of GIF is that you can create animation with them.

Instructor: A. Burns 6 GIF GIF are best for  Images with large areas of solid, flat color e.g Logos Cartoons

Instructor: A. Burns 7 JPEG  JPEG  JPEG can contain 16.7 million colors (called 24- bit) as to 256 colors for GIF  JPEG are best for photographs, watercolor images.  JPEG are file sizes are smaller

Instructor: A. Burns 8 JPG JPEG files are best used for images that require many colors such as photographs. JPEG has a higher compression ratio but it is a "lossy" compression (compression sacrifices some image data in reducing file size).

Instructor: A. Burns 9 GIF

Instructor: A. Burns 10 GIF Problem?

Instructor: A. Burns 11 JPEG Solution

Instructor: A. Burns 12 Inserting Images  Adds an image  We usually put images in a separate folder  E.g. <img src=“images/myImage.gif”  The image file resides on the web server (shrike) and has a 644 permission.

Instructor: A. Burns 13 Aligning Images To insert an image  To right-align an image: You can also left-align the image:

Instructor: A. Burns 14 HTML page on M.L. King Martin Luther King, Jr. I have a dream that one day this nation will rise up and live out the true meaning of its creed: "We hold these truths to be self- evident: that all men are created equal." …… I have a dream today. I have a dream that one day the state of Alabama, whose governor's lips are presently dripping with the words of interposition and nullification, will be transformed into a ….. …………

Instructor: A. Burns 15 ALT attribute Allows you to provide a text equivalent for the object. Useful for…  Browsers that do not display images  Text readers for blind, color-blind, low-sighted  Search engine bots (the alt attribute makes sure that they won't miss important sections of your pages)

Instructor: A. Burns 16 Clickable image hyperlinks Anchors can be used to hyperlink images instead of text. Whenever the mouse enters the clickable region, it will display the contents of the ALT attribute. By default, clickable images have blue borders  No blue border? Set the BORDER attribute inside the IMG tag to 0.

Instructor: A. Burns 17 Bandwidth Limitations Image files consume more bandwidth than text files Users who access the Internet via telephone lines will have to wait for image files that are 100KB or larger Whenever possible, use image files no larger than 30-40KB

Instructor: A. Burns 18 Battling Bandwidth Limitations Always specify height and width attributes for all your images so the browser can “work around” each image while it is downloading.  TIP: To find an image dimension: open it using a Web browser, then select Properties on the File Menu.

Instructor: A. Burns 19 Scaling Images Rescale the image by changing its WIDTH and HEIGHT attributes. Preserve the aspect ratio (height-to-width ratio) otherwise the image gets distorted. Divide or multiple the dimensions by the same factor. Scaling down an image DOES NOT reduce its bandwidth requirements. To reduce the file size, you need to compress the image.

Instructor: A. Burns 20 Example of image scaling Image Scaling The image size is 320x266 px. How will a browser display these images? scaling example