Images.

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.
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.
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.
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.
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.
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.
Enhancing Your Web Site. More Basic HTML Tags Today you will learn these tags: & add-on (alt, height, width & align) and “href” add-on Add a text link.
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
Chapter 6 Images in Dreamweaver & Fireworks Mrs. Johnson Web Design.
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 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.
Images in HTML PowerPoint How images are used in HTML.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Images, Links, and Multimedia. Directories and Pathnames.
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.
Images. The Element To place an image on our web page, we use the self-closing element: The src attribute ("source") is required and supplies the name.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Web Design (7) Images (1). Images and the Image Element Images can be placed in the flow of text..jpg,.png and.gif image files work in web pages The img.
Resizing Images CS 268. Where to start? Pictures (of course)  Need to down size them for the web.  Pictures taken with a 10 mega pixel camera are usually.
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.
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.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
GRAPHICS. PURPOSE OF GRAPHICS IN WEB DESIGN Graphics add visual/aesthetic appeal to the information on the web page, helping to maintain viewer interest.
REEM ALMOTIRI Information Technology Department Majmaah University.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
“Rightsizing” Images for
Editing images using Microsoft Photo Editor and Paint
HTML Basics.
Exploring Computer Science - Lesson 3-4
How to get the best results from your website and images.
Images.
Images.
Exploring Computer Science - Lesson 3-4
Inserting and Working with Images
Images, Links and Multimedia
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
Chapter 4 Adding Images.
Exploring Computer Science - Lesson 3-4
HTML Images CS 1150 Spring 2017.
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
Graphics (Characteristics 1)
Images.
Images.
DREAMWEAVER MX 2004 Chapter 4 Working with Images
HTML Images CS 1150 Fall 2016.
Adding Images.
Adding Images.
Lesson 7 Graphics.
Adding Images.
Adding Images.
Presentation transcript:

Images

The <img> Element To place an image on our web page, we use the self-closing <img> element: <img src="double-rainbow.jpg" alt="Double Rainbow Photo" /> The src attribute ("source") is required and supplies the name and location of the image file we wish to display. If no path is specified, the browser will expect the file to be in the same folder as the current web page. The alt attribute ("alternative text") is required and determines what text will display on the web page if the image file is not available. This is also what screen readers for the visually impaired will use, so we should try to be accurate and succinct in our description. It's a good habit to name all image files with lowercase letters and to use underscores or dashes instead of spaces.

<img> Dimensions on Screen If we insert an image without specifying its dimensions, the browser will display the image in its original size, which might not be what we intended: <h1>Vacation Photos</h1> <p>Here is a photo I took from our hotel balcony:</p> <img src="double-rainbow.jpg" alt="Double Rainbow Photo" /> The original dimensions of this image are 1600px (pixels) wide by 1200px high. Since this Firefox browser screen is just 1024px wide, the image doesn't fit and must be scrolled to be viewed. To fix this, we need to specify the dimensions of our image.

Width and Height Attributes By supplying values for the height and width attributes, we can instruct the browser to display the image in exactly the size we wish: <h1>Vacation Photos</h1> <p>Here is a photo I took from our hotel balcony:</p> <img src="double-rainbow.jpg" width="400" height="300" alt="Double Rainbow Photo" /> We must reduce the width and height in even proportions or the image will appear distorted. In this case, we reduced the original 1600px by 1200x to 400px by 300px. We can also make a smaller image appear larger on the page, but this isn't recommended, as the image will look pixelated and of poor quality.

Distorted Image If we fail to keep the height and width attributes in proportion to the actual photo dimensions, we'll see an image that is squished vertically or horizontally: <img src="double-rainbow.jpg" width="200" height="300" alt="Double Rainbow Photo" /> <img src="double-rainbow.jpg" width="400" height="150" alt="Double Rainbow Photo" />

Optimizing Images Web download speeds are much slower than our local hard drive access speed. Downloading large image files can take a long time and make our web page slow to load. The solution is to "optimize" our web images by creating copies in the exact dimensions we display them on our pages. Here we are using a built-in Microsoft Windows tool to create a smaller copy of our original image. To avoid confusion, we can append "small_" to the original file name when saving the new file. We can also create a thumbnail size, which is usually about 100px to 150px wide, and append "thumb_" to the file name.

Image File Sizes Optimizing images by resizing them makes a tremendous difference in the actual file size. Let's take a look at our three image files: The original, full-size image file is 265KB, but our smaller version is just 20KB and the thumbnail version is a tiny 3KB! These smaller versions will load very quickly on our web page.

Images as Links Earlier we learned how to create a text link. Turning an image into a link is straightforward: <a href="double-rainbow.html"> <img src="double-rainbow.jpg" width="400" height="300" alt="Double Rainbow Photo" /> </a> By moving the mouse over the image, we see that the pointer changes. The image is now a live link and if clicked, the user will go to the page indicated. This technique could be used, for example, to create a web photo album, where the user could browse a large number of thumbnail photos and then click on any individual thumbnail to see a page with the full-size image.

Image Formats .jpg .png .gif û ü ü û û ü Images on the web generally come in three common formats. The JPG format is by far the most common, especially for photos: Image Extension: .jpg .png .gif Best suited for: Photographs Logos, Icons Icons, Animations Color support: Excellent Excellent Limited Supports transparency*: û ü ü Supports animation: û û ü *A transparent image does not show its empty space as white. Instead, it takes on the underlying content of the web page. Here we see a JPG image (no transparency) on the left and a GIF (with transparency) on the right. Transparent images are ideal for "stacking" graphics on a page, for example superimposing a logo image on top of other content.