Images, Links, and Multimedia. Directories and Pathnames.

Slides:



Advertisements
Similar presentations
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Advertisements

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.
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.
Lecture HTML Images. Use for Images Photos and Graphics Buttons for Navigation Bullets for Lists Backgrounds Symbols and Icons Logos.
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.
Internet Publishing / Dreamweaver Luke E. Reese CARRS
Images. Image File Formats All browsers support All browsers support –GIF (Graphic Interchange Format)  limited to 256 colors  lossless compression.
Graphics and Animation Chapter 8. 8 Graphics in Multimedia Graphics are an element that virtually all multimedia applications include.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tutorial 3: Working with Images. Objectives Session 3.1 – Identify the differences among image file types – Evaluate the purpose of alternative text –
INFSCI  “Users pay close attention to photos and other images that contain relevant information, but ignore fluffy pictures used to “jazz up” webpages.”
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
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.
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.
Getting the Basics Graphics for the Web McIntyre, Period 2 Kellogg, Period 5.
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.
 Scaling an image is resizing the image in a graphic editing software so it is the proper size before adding it to a site.  Important NOTE: If you insert.
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 in HTML PowerPoint How images are used in HTML.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
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.
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.
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.
+ 5 Things you need to know about images* *Images for the web.
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.
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 –
Multimedia. What is a graphic?  A graphic can be a: Chart Drawing Painting Photograph Logo Navigation button Diagram.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
1 Creating Web Pages Part 2. 2 TOPICS Links Links Web Graphics Web Graphics Lists Lists Tables Tables.
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.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Lecture 15. A Very Brief Introduction to HTML and XHTML, part IV Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Web Page Design Mrs. Ricke. Graphics Interchange Format 256 colors only Good for icons, clipart, logos Not good for high quality pictures.
Internet Publishing / Dreamweaver Luke E. Reese Biosystems & Ag. Engr. / CARRS
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
GIF vs. JPEG GIF and JPEG (JPG) image formats are different. You should know which to use when. Here are some examples.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
REEM ALMOTIRI Information Technology Department Majmaah University.
Exploring Computer Science - Lesson 3-4
Images.
Images.
Exploring Computer Science - Lesson 3-4
Images, Links and Multimedia
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.
Basics of Web Design Chapter 5 Graphics & Text Styling Basics Key Concepts Copyright © 2018 Terry Ann Morris, Ed.D.
Graphics (Characteristics 1)
Images.
Images.
Chapter 5 Graphics & Text Styling Basics Key Concepts
Images.
HTML Images CS 1150 Fall 2016.
Adding Images.
Adding Images.
Adding Images.
Adding Images.
Presentation transcript:

Images, Links, and Multimedia

Directories and Pathnames

Files index.html standard.css updatetime.js welcome.gif cis203syllabus.pdf depelmatt.doc internetbasics.ppt file name TIPS  NO spaces in file names.  Use all lowercase characters.  Short names.  Make names meaningful.  Use “standard” file extensions.  Browser Helper Objects and Viewers..extension

public_html componentscis203images materialssolutions Root Directories (subdirectories of public_html) (parent directory is public_html) Directories (subdirectories of cis203) (parent directory is cis203) Directory Structure (really a virtual root on most web servers)

Two Types of Pathname Absolute Pathname. Relative Pathname.

public_html componentscis203images materialssolutions../schedule.html../../standard.css../materials/introhtml.ppt../solutions/mycssdll.css../../images/welcome.gif /images/welcome.gif components/standard.jscis203/materials/depelmatt.doc components/standard.js../images/welcome.gif /components/standard.js introhtml.ppt Pathnames

Images

Common Image Types GIF –Clipart, logos, and other simple graphics. –Animated GIF. JPG –Photographs. PNG –Replacement for GIF. BMP –Anything – but huge files – avoid.

Size and Aspect Ratio 234 pixels 400 pixels Aspect Ratio == horizontal vertical 400 pixels 234 pixels =

Resizing Guide New Size = Horizontal * change Vertical * change 400 * * 0.25 =≈ = New Aspect Ratio = Old Aspect Ratio =  Slight Distortion = New Aspect Ratio =

Distortions Horizontal Distortion Vertical Distortion Aspect Ratio Preserved 200 pixels / 117 pixels Aspect Ratio Ok 100 pixels / 59 pixels

Color Depth Number of colors each pixel can take. Bits  Colors –1 bit  black and white –8 bit  256 colors –16 bit  65,536 colors –24 bit  16,777,216 colors –32 bit  4,294,967,296 colors More bits means more colors.

Image File Size Size  larger file! Color Depth – more bits  larger file! Larger file  slower download! Resize images before loading to web site. General: –Most displays are 1,024 by 768. –Often do not need 32 bit.

An Image on a Web Page <img src="bige.jpg“ alt="Einstein on the stairs" />

<img src="bige.jpg" alt="Einstein on the stairs" width="320" height="187" /> Resizing an Image with Attributes Preserve the Aspect Ratio! A better approach is to resize the image with graphics editing software. This saves space and improves download time.

<img src="bige.jpg" alt="Einstein on the stairs" style="width: 320px; height: 187px" /> Resizing an Image with CSS

Float Left Some days dinner is a little late. On those days, … a lazy human.

Float Right Some days dinner is a little late. On those days, … a lazy human.

Some Additional Comments KISS! Do not get too fancy too quickly! Avoid over use of images. Respect copyrights. Do not engage in “bandwidth theft!”