Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Five Working with Images.
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.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Adobe Photoshop CS Design Professional FOR THE WEB CREATING IMAGES.
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.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
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.
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.
Web Development & Design Foundations with HTML5
Web Design, 5 th Edition 5 Typography and Images.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
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.
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.
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 & 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.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
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.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Adobe Photoshop CS3 Revealed – Chapter 16 FOR THE WEB CREATING IMAGES.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
Inserting and Working with Images
Web Development & Design Foundations with HTML5 8th Edition
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
Chapter 4 Adding Images.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
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.
Chapter 5 Graphics & Text Styling Basics Key Concepts
DREAMWEAVER MX 2004 Chapter 4 Working with Images
Creating Images for the Web
Web Development & Design Foundations with H T M L 5
Hyperlinks, Images, Comments, and More…
Presentation transcript:

Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1

Learning Outcomes  Describe types of graphics used on the Web  Apply the image element to add graphics to web pages  Configure images as backgrounds on web pages  Configure images as hyperlinks  Configure multiple background images with CSS3  Configure list markers with CSS  Configure an image map 2

Types of Graphics  Graphic types commonly used on web pages: GIF JPG PNG 3

GIF Graphics Interchange Format Best used for line art and logos Maximum of 256 colors One color can be configured as transparent Can be animated Uses lossless compression Can be interlaced 4 Background color – no transparency Background color configured to be transparent

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 5

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 6

Web Graphics Image Type File Extension Com- pression Trans- parency AnimationColorsProgressive Display Graphic Interchange Format (GIF).gifLosslessYes 256Inter-lacing Joint Photographic Experts Group (JPEG).jpg or.jpeg LossyNo MillionsProgressive Portable Network Graphic (PNG).pngLossless Yes (multiple levels) NoMillionsInter-lacing 7

Image Optimization  The process of creating an image with the lowest file size that still renders a good quality image— balancing image quality and file size.  Photographs taken with digital cameras are not usually optimized for the Web  Use a graphics application to: Reduce image dimensions Reduce size of the image file 8

Optimize An Image for the Web  Image Optimization Reduce the file size of the image Reduce the dimensions of the image to the actual width and height of the image on the web page.  Image Editing Tools: GIMP (free!) Adobe Fireworks Adobe Photoshop (free!) 9

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

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

Accessibility & Images  Required: Configure the alt attribute ○ Alternate text content to convey the meaning/intent of the image ○ If the image contains a text message, then the text should typically be the value of the alt attribute ○ NOT the file name of the image ○ Use alt=“” for purely decorative images  Recommended: If your site navigation uses image links for the main navigation, provide simple text links at the bottom of the page.

Image Links To create an image link use an anchor element to contain an image element Browsers automatically add a border to image links. Configure CSS to eliminate the border img {border-style: none; } 13 Home

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

CSS background-image Property  Configures a background-image  By default, background images tile (repeat) body { background-image: url(background1.gif); }

CSS background-repeat Property

Using background-repeat h2 { background-color: #d5edb3; color: #5c743d; padding-left: 30px; background-image: url(trilliumbullet.gif); background-repeat: no-repeat; } trilliumbullet.gif:

CSS3 Multiple Background Images body { background-color: #f4ffe4; color: #333333; background-image: url(trilliumgradient.png); background: url(trilliumfoot.gif) no-repeat bottom right, url(trilliumgradient.png); } 18

Favorites Icon  Small icon that displays in the address bar or tab bar of some browsers  Also called a favicon 19

Configure List Markers with CSS  CSS Properties list-style-type list-style-image list-style position Example: ul {list-style-image: url(trillium.gif); } 20

Image Map  map element Defines the map  area element Defines a specific area on a map Can be set to a rectangle, circle, or polygon ○ href Attibute ○ shape Attribute ○ coords Attribute 21

Summary  This chapter introduced the HTML techniques and technologies used to place images on web pages.  Issues related to accessibility and copyright were also discussed.  The number one reason for visitors to leave web pages is too long of a download time. When using images, be careful to minimize this issue. 22