1 Mastering the Internet and HTML Images and Image Tags.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Working with Images and HTML
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.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
So you want pictures on your web site ? ECUSA Digital Media Services Workshop by John Rollins,Cindy Meneghin and Jan Paxton.
Iframes & Images Using HTML.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
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.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 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.
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.
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.
4 HTML Basics 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.
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.
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.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
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.
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 in HTML PowerPoint How images are used in HTML.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
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.
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.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Creating Web Pages with Links, Images, and Formatted Text
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
1 Creating Links within a Web Page  These links are especially useful on long Web pages  Links at the top of the page point to areas further down the.
1 Using HTML and JavaScript to Develop Websites. Using Images.
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 –
Internet Applications Development Lecture 4 L. Obead Alhadreti.
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.
4 HTML Basics 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.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Photoshop Image Slicing. Reasons to Image Slide To create links out of sliced images To optimise different areas. (flat areas of colour, such as logos,
Kevin Murphy Images and Web Pages Masters Project CS 490.
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: … …
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
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.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
HTML III ECT 270 Robin Burke.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Inserting and Working with Images
A computer display is made up of small squares, called pixels.
Creating a Web Site with Links
Graphics (Characteristics 1)
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Presentation transcript:

1 Mastering the Internet and HTML Images and Image Tags

2 Outline Goal Objectives Introduction Image formats Image software Image tags Creating images Editing images Capturing images Scaling images Image hyperlinks Multiple use of images Image list items GIF Animation Tiling Tutorials FAQs Summary Exercises/Homework

3 Goal This chapter covers images, their use in Web pages, their formats, and their tags. It also covers how to deal with images such as creation, editing, capture, and scaling

4 Objectives Introduction Image formats Image software Dealing with images (creation, editing, capturing, scaling, hyperlinks, multiple use, and list items) GIF animation Tiling

5 Introduction Images, icons, and logos enhance Web page design Images are best viewed or downloaded using broadband Internet connections. Larger images take longer to download Web authors can create images, scan them, or link to them If used in Web pages, images should be small (thumbnails) and simple

6 Image formats Image resolution and format affects its file size. Higher resolution produces larger size Three image formats are widely supported by the Web. They are GIF, JPEG (JPG), and PNG The GIF format supports the most commonly used 256 (8-bit) colors; the JPEG format supports the 16.7 million (24-bit) colors Use the GIF format for simple images created via image programs. Use the JPEG format for complex high-quality images created via scanning real photos, or digital photos

7 Image software Images can be created via drawing, scanning, or digital cameras Image creation and editing include Adobe Photoshop, Adobe Illustrator, Mapedit, Paint Shop Pro, ThumbsPlus, and WebImage Image software is 2D. Its coordinate system has an origin in the top left corner of the drawing window (figure 10.1) Inage viewing software allows viewing large libraries of images. Samples are CompuPic, Lview Pro, ViewSafe, and SnapShot

8 Figure 10.1 Image creation coordinate system

9 Image tags The tag, with its attributes, provides Web authors with the control they need to deal with images The attributes of the tag are SRC, ALT, BORDER, WIDTH, HEIGHT, ALIGN, HSPACE, VSPACE, USEMAP, LONGDESC, and ISMAP

10 Creating images Many image software exists MS Windows Paint program (figure 10.2) comes installed with Windows OS To access Paint, click: Start (menu on bottom left corner of desktop) => Programs => Accessories => Paint The Paint GUI is simple to use and intuitive (Cont’d)

11 Figure 10.2 MS Windows Paint program (Cont’d)

12 Creating images Example 10.1 Image in a Web page (figure 10.3) A Web page with images Web page with a simple image <IMG SRC = "myImage.GIF" ALT = "A GIF image drawn in Paint“ BORDER = 5 ALIGN = "middle“ HSPACE = 10 VSPACE = 15>Text aligned middle This text is placed 15 pixels below the image

13 Editing and capturing images Image editing may mean changing image content (cropping it or adding graphics/colors/text), or changing its size (compressing (encoding) or decompressing (decoding) it) GIF compression maintains the image original colors, while JPEG compression reduces the number of colors Web authors should not compress and then decompress JPEG images more than once To capture and save an image off the Web, right click on it and follow prompts

14 Scaling images The WIDTH and HEIGHT attributes of the tag are used to scale images Example 10.2 Scaling images (Fig. 10.4) A Web page with scaled images Web page with a scaled image <IMG SRC = "myImage.GIF“ ALT = "A GIF image drawn in Paint“ BORDER = 5 ALIGN = "middle" HSPACE = 10 VSPACE = 15 WIDTH=100 HEIGHT=125>Text aligned middle This text is placed 15 pixels below the image Figure 10.4 Scaling an image

15 Image hyperlinks Images can be used, instead of text, as hyperlinks Example 10.3 Image hyperlinks (Fig. 10.5) A Web page with image hyperlink Web page with an image hyperlink <IMG SRC = "myImage.GIF" ALT = "A GIF image drawn in Paint" ALIGN = "middle" HSPACE = 10 VSPACE = 15 WIDTH = 40 HEIGHT = 50> Text aligned middle This text is placed 15 pixels below the image (Cont’d)

16 Figure 10.5 Image hyperlink

17 Multiple use of images The same image could be used more than once in the same Web page Example 10.4 Multiple use of an image (figure 10.6) (shortened from the top) <IMG SRC = "myImage.GIF" ALT = "A GIF image drawn in Paint" ALIGN = "middle" HSPACE = 10 VSPACE = 15 WIDTH = 40 HEIGHT = 50> Text aligned middle This text is placed 15 pixels below the image

18 Image list items Images can be used as list items or item hyperlinks in unordered, ordered, or definition lists Example 10.5 Image list items (Figure 10.7) A Web page with image list items Web page with image list items This is the original image Image list item An image may be used as a list item in unordered, ordered, or definition lists. This is an image hyperlink as a list item. (Cont’d)

19 Figure 10.7 Image list items

20 GIF animation GIF animation allows a Web author to create a set of image frames in the desired sequence and save them in one GIF file, as shown below in figure 10.8 Figure 10.8 Animation sequence of a ball

21 Tiling When a Web author uses an image as a page background, the browser repeats it horizontally and vertically in a pattern, thus creating a tiling effect Example 10.6 Tiling a Web page A Web page with tiling Web page with tiling This is the original image Image list item An image may be used as a list item in unordered, ordered, or definition lists. This is an image hyperlink as a list item. (Figure 10.9)

22 Figure 10.9 Tiling a Web page

23 Tutorials Tutorial Right justify an image (top tags are not shown) This is an image that is right- justified relative to this text. It seems that the right and left justifications are more practical than the vertical (top, middle, or bottom) justification. Yet, a better way of formatting Web pages is to use tables. Yes, HTML uses tables to format Web pages very precisely. More on tables later. As you can see in this screen capture, the text flows underneath the image as we expect.

24 FAQs Q: Why is the browser not displaying the image in my Web page? – A: The reason is usually unintentional misuse of the tag. Quite often a Web author forgets to close the quotes in the tag; for example,. Check the tag carefully and ensure that its syntax is correct. (Cont’d)

25 FAQs Q: How can I control the positioning of text around an image in my Web page? – A: Positioning of text around images in Web pages cannot be controlled without using tables to format the page, as discussed in chapter 16 of this book. Without tables, Web authors can use the ALIGN attribute which aligns text as shown in figures 10.4 and 10.5.

26 Summary – Images enhance Web page design and presentation – Images are best used with broadband connections – Image variables are resolution and format – Web image formats are GIF, JPEG (JPG), and PNG – Use GIF format for simple images, and JPEG format for complex images (e.g. photos and scanned pictures) – The HTML image tag is. Its attributes are SRC, ALT, BORDER, WIDTH, HEIGHT, ALIGN, HSPACE, VSPACE, USEMAP, LONGDESC, and ISMAP – Images can be created, edited, compressed, captured, scaled, animated, and/or used as hyperlinks or list items

27 Exercises Problem Use two images in a Web page.Use the first image as is, and scale the second one down by 50%. Use the ALT, BORDER, WIDTH, HEIGHT, ALIGN, HSPACE, and VSPACE attributes of the tag. – Solution strategy: Follow examples 10.1 and Use a text editor to write and debug the HTML code. Use a browser to display the results (Cont’d)

28 A Web page with scaled images Web page with a scaled image Text aligned middle This text is placed 15 pixels below the image Text aligned middle This text is placed 15 pixels below the image (Cont’d)

29

30 Problems Problem Create a Web page that uses an image for a tiling effect. Choose your favorite image for tiling. You could draw it or download it. – Solution strategy: Follow example Use a text editor to write the HTML code. Use a browser to test it (Cont’d)

31 A Web page with tiling Web page with tiling This is the original image Image list item An image may be used as a list item in unordered, ordered, or definition lists. <IMG SRC = "myDog3.jpg" ALT = "My dog Lucy" ALIGN = "middle" HSPACE = 10 VSPACE = 15 WIDTH = 100 HEIGHT = 70> This is an image hyperlink as a list item. (Cont’d)

32