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.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

Iframes & Images Using HTML.
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.
กระบวนวิชา 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.
Today’s objectives Site performance Padding, Margins, Borders
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.
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.
MORE Cascading Style Sheets (The Positioning Model)
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.
Tutorial 3: Working with Images. Objectives Session 3.1 – Identify the differences among image file types – Evaluate the purpose of alternative text –
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.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
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.
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
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
IT Introduction to Website Development Welcome!
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
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) –
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
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.
Computer Science 101 Images in Web Pages. Image Files Two common formats, GIF and JPEG GIF images are more flexible for use as icons JPEG images are sharper.
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.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
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.
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.
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
Macromedia Dreamweaver MX 2004 Design Professional And Graphics WORKING WITH TEXT.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
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.
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
WRA 210: 10/7/13 IMAGES. TODAY’S AGENDA Reminder about Module 8 - test your links!Module 8 Overview of hierarchies, naming How images work on the web.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Section 8.1 Section 8.2 Create a custom theme Design a color scheme
Inserting and Working with Images
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
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
Adding Images.
Adding Images.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Adding Images.
Adding Images.
Presentation transcript:

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 company logo To add decoration Used to link to other documents Used as an imagemap

Graphics File Formats for Web GIF: Graphical Interchange Format JPEG: Joint Photographic Experts Group PNG: Portable Network Format

GIF Format One of the most popular formats that uses lossless compression No information is lost in compression Limited to showing 256 colors Used to represent images with flat color Line drawings Logos Illustrations

JPEG Format Uses lossy compression Information is lost after compression Uses 24 bit color which is also referred to as millions of colors Used mainly for photographic type images

PNG Format Supported by newer browser versions Was developed as patent-free answer to GIF Also uses lossless compression! Uses 8 bit color palette Supports 16 bit grayscale Up to 48 bit true color Supports 8 or 16 bit transparency

Graphics File Extensions Make sure to use the proper file extension when adding images to your page.gif,.jpg,.png Browsers use the extension to determine how to display the image

The img Element This tag is used to insert an image in the flow of text The tag is an inline element and is placed on the baseline when displayed The image tag is a self-terminating tag Add a forward slash before the closing brace />

Attributes src=“path” This is the source of the image The value is the path to the image alt=“describing text” Alternative text that describes the image Needed for accessibility issues, required by the Americans with Disabilities Act (ADA) Must be included in order to validate!!!!

Long Descriptions Alternative text provides a good start to increasing the accessibility of your non-textual content Alternative text is meant to be brief and to the point A long description can be used to provide a more thorough explanation

height=“number” (image height in pixels) width =“number” (image width in pixels) For images that are part of page content, include width and height in (X)HTML markup Specifying both width and height for an image can help browser load page faster Width and Height Dimensions

Resizing an Image A smaller or larger pixel size will stretch or shrink the image only in the browser If you just modify the width attribute pixel size, the height will adjust proportionately The image file is still the same size and takes the same time to download Note: If adjusting of image size is needed, do it with a graphics program not in the browser

Decorative Page Images Images that are used as page decoration or to support page layout can be viewed as presentational elements These images should be controlled by a style sheet using CSS rather than placed in (X)HTML markup Removing these images from page markup to a style sheet will make your pages cleaner and also make them more accessible

Align and Spacing Attributes align hspace vspace border These HTML attributes are being deprecated. Use CSS in a style sheet to set image alignment, add padding or a border on images Deprecated

CSS Float Property Normally elements flow down the page from left to right and top to bottom. The float property can be used to take an element out of the normal flow and move it all the way to the left or right margin of the containing element float: left; float: right; Use float instead of HTML align attribute

CSS Padding Property The spacing between an element’s content and its border is called the padding (think padded cell) There are four edges of an image element which can be padded: padding-left padding-right padding-top padding-bottom

Floating an Image To float an image using embedded CSS, create a class the uses the float property Then apply the class to an image.imageleft { float: left; padding-right: 5px; }

.noborder {border-style: none; } Linking Images Use the tag in conjunction with the tag You can apply a CSS class to the image to suppress the border of a linked image

Imagemaps – Covered Later An imagemap can be used to place hotspots (clickable areas) on an image Each hotspot has a set of coordinates that define the clickable area Because it is almost impossible to guess what these coordinates are without a tool to help you calculate them… We will wait to cover imagemapping until we can use Expression Web to help us determine these coordinates

Storing Images on Site You should get in the practice of creating a separate folder for your images on your site This folder is usually called Images You can create other subfolders within your Images folder Thumbnails Fullsize etc.

Where should Graphics Reside? Advantages of storing graphics on your own Web server: They will load faster You have control of the files You can optimize graphics for your usage Disadvantages of linking to files on another Web server They take up room on the server Makes your site organization more cluttered You don’t control the files, they may go away

Image Ownership Its poor form, not to mention illegal to use images that are copyrighted if you have not paid for them Don’t borrow an image from another site and call it your own Look for the words: “unrestricted” or “royalty-free” on found images Stock images can often be purchased for a very minimal amount

Lesson Summary Graphics are an important tool of a web designer There are many graphics formats which can display on the web The tag is an inline element used to add images to a page Many attributes are deprecated and should be controlled using CSS Know the ethical and performance issues related to using and storing graphics on a web site