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.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
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.
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.
Optimizing picture file size. Three things you can do to lower file size  Lower the resolution  Crop the picture  Save with a file format that uses.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
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.
Preparing & Displaying Photos Photo Display Options Last Updated 2/2010.
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.
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 attributes Create.
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.
Creating Web Pages with Links, Images, and Formatted Text
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
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 & Design Foundations with XHTML Chapter 4 Key Concepts.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
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.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
Microsoft Expression Web-Illustrated Unit E: Working with Pictures.
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.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
REEM ALMOTIRI Information Technology Department Majmaah University.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
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
Chapter 4 Adding Images.
Exploring Computer Science - Lesson 3-4
Chapter 3 Images.
Adding Images.
Images.
Images.
DREAMWEAVER MX 2004 Chapter 4 Working with Images
Images.
Adding Images.
Adding Images.
Adding Images.
Adding Images.
Presentation transcript:

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 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.

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: Vacation Photos Here is a photo I took from our hotel balcony: 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: Vacation Photos Here is a photo I took from our hotel balcony: 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:

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: 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 Images on the web generally come in three common formats. The JPG format is by far the most common, especially for photos: Supports transparency*: Supports animation: Color support:.jpg.png.gif Excellent Limited   Best suited for: Image Extension: PhotographsLogos, IconsIcons, Animations Transparent images are ideal for "stacking" graphics on a page, for example superimposing a logo image on top of other content. *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.