1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.

Slides:



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

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Working with Images and HTML
Iframes & Images Using HTML.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
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.
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 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.
Web Development & Design Foundations with HTML5
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.
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.
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.
HTML Boot Camp: Rules and Images
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,
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.
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) –
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
Web111a_chapt03.ppt HTM: Section 3 Colors Selecting Colors Methods Color names Color values Color Names 16 Basic Color Names HTML 3.05, Figure 3-2 Extended.
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.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
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.
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 –
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.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
12/20/20151 Color Fall, 2010 Modified by Linda Kenney 10/26/10.
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: … …
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
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.
HTML III ECT 270 Robin Burke.
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
In this session, you will learn to:
Inserting and Working with Images
Images, Links and Multimedia
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
Web Development & Design Foundations with H T M L 5
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Presentation transcript:

1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts

© 2007 Pearson Education 2 Learning Outcomes In this chapter, you will learn to: –Use color on web pages –Create and format horizontal lines on web pages –Decide when to use the most appropriate types of graphics on web pages –Use the image tag to add graphics to web pages –Use images as backgrounds on tables and web pages –Use images as hyperlinks –Find both free and fee-based sources of graphics –Follow recommended web design guidelines when using graphics on web pages

© 2007 Pearson Education 3 Using Color on Web Pages Monitors display color as intensities of red, green, and blue RGB Color The values of red, green, and blue vary from 0 to 255. Hexadecimal numbers (base 16) are used to represent these colors.

© 2007 Pearson Education 4 Hexadecimal Color Values Hex value pairs range from 00 to FF Three hex value pairs are used to describe a RGB color # black#FFFFFF white #FF0000 red#00FF00 green #0000FF blue

© 2007 Pearson Education 5 Web Color Palette A collection of 216 colors that display the same on both the Mac and PC platforms. Hex values: 00, 33, 66, 99, CC, FF See the Color Chart at

© 2007 Pearson Education 6 XHTML Color and the tag bgcolor Attribute –Configures the background color of the web page text Attribute –Configures the color of the text on the web page link Attribute –Configures the color of the hyperlinks on the web page vlink Attribute –Configures the color of the visited hyperlinks on the web page alink Attribute –Configures the color of the active hyperlinks on the web page

© 2007 Pearson Education 7 XHTML tag Horizontal Rule tag Stand alone tag Used to place a horizontal line on the page Design Hint: when tempted to use an tag, try adding more blank space around the web page elements – often this will result in a less cluttered, better designed web page. Common Attributes: –width, color, align

© 2007 Pearson Education 8 Checkpoint Is it reasonable to try to code a web page that looks exactly the same on every browser and every platform? Explain your answer. 2. A web page is coded with the background color set to # and the text color set to # When the page is displayed in a browser, the hyperlinks display fine but the text does not show up. Why did this happen? What do you suggest to correct this? 3. True or False. Using the Web Safe Color Palette guarantees that your web page colors look identical on every single browser and operating system.

© 2007 Pearson Education 9 Types of Graphics Graphic types commonly used on web pages: –GIF –JPG –PNG

© 2007 Pearson Education 10 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

© 2007 Pearson Education 11 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

© 2007 Pearson Education 12 PNG Portable Network Graphic Support millions of colors Support multiple levels of transparency Support interlacing Use lossless compression Combines the best of GIF & JPEG Browser support is growing

© 2007 Pearson Education 13 XHTML tag The image tag Used to place graphics on a web page src Attribute –used to indicate the file name of the graphic alt Attribute –Used to configure a text description height Attribute –Used to configure the height of the image in pixels width Attribute –Used to configure the width of the image in pixels

XHTML Alignment Vertical Alignment – tag align Attribute

XHTML More attributes Horizontal Alignment Adding Vertical Space –vspace Attribute Adding Horizontal Space –hspace Attribute

© 2007 Pearson Education 16 Image Links To create an image link use an anchor tag to contain an image tag Home

© 2007 Pearson Education 17 Organizing Your Web Place images in their own folder

XHTML More attributes background attribute –Used to configure a background image for a web page

© 2007 Pearson Education 19 Checkpoint Describe the attribute (and corresponding value) used on an image tag to configure an image called coffee.gif to float on the right side of a paragraph of text, allowing the text to wrap around it. Code sample XHTML to demonstrate this. 2. Describe the attribute (and corresponding value) used on an image tag (for coffee.gif) to configure the text following the image to display vertically next to the center of the image rather than next to the bottom of the image. Code sample XHTML to demonstrate this. 3. True or False. When coding image links, use configure the image tag with border="0" to avoid the default blue border.

© 2007 Pearson Education 20 Images & More! XHTML tag No Break tag Used when you might be using images in a navigation bar and you would like to keep the images in a horizontal row no matter what the screen resolution settings are or browser window size is on your visitor's computer. …place image tags here

© 2007 Pearson Education 21 Using a Table to Format Images …first image tag goes here… …second image tag goes here… …third image tag goes here… …fourth image tag goes here…

© 2007 Pearson Education 22 Thumbnail Image A small image used to link to a larger version of that image. Examples?

© 2007 Pearson Education 23 Image Maps tag –Defines the map tag –Defines a specific area on a map –Can be set to a rectangle, circle, or polygon href Attibute shape Attribute coords Attribute

Sample Image Map

© 2007 Pearson Education 25 Sources for Graphics create them yourself using a graphics application download them from a free site purchase and download them from a graphics site purchase a graphics collection on a CD take digital photographs scan your photographs scan your drawings hire a graphic designer to create graphics

© 2007 Pearson Education 26 Popular Graphics Applications Adobe Photoshop JASC Paintshop Pro Adobe Macromedia Fireworks

© 2007 Pearson Education 27 Guidelines for Using Images Consider image load time Reuse images Weigh image size with image quality Resolution Specify dimensions Gamma

© 2007 Pearson Education 28 Images and Accessibility Don't rely on color alone. –Some visitors may have color perception deficiencies. Use high contrast between background and text color. Avoid using the colors red and brown next to each other. –These colors are difficult for individuals with the most common color perception deficiency to differentiate. Provide a text equivalent for non-text elements. –Use the alt attribute on your image tags. If your site navigation uses image links, provide simple text links at the bottom of the page.

© 2007 Pearson Education 29 Checkpoint Search for a site that uses image links to provide navigation. List the URL of the page. What colors are used on the image links? If the image links contain text, is there good contrast between the background color and letters on the image links? Would the page be accessible to a visitor who is sight- challenged? How have accessibility issues been addressed? Is the alt attribute used to describe the image link? Is there a row of text links in the footer section of the page? –Answer the questions above and discuss your findings.

© 2007 Pearson Education 30 Checkpoint When configuring an image map, describe the relationship between the image, map, and area tags. 3. True or False. Save your images using the smallest file size possible.

© 2007 Pearson Education 31 Summary This chapter introduced the use of color and graphical elements on web pages. As you continue to create web pages, look back at the guidelines and accessibility issues related to graphics. 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. Provide alternatives to images (such as text links) and use the alt attribute on your pages.