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.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Five Working with Images.
Advertisements

Working with Images and HTML
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
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.
Chapter 17 Creating Images for the Web. Chapter Lessons Learn about Web features Optimize images for Web use Create a button for a Web page Create slices.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
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.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Marking Up With Html: A Hypertext Markup Language Primer
Creating the pages Part Five Graphics. File Format Basics You can currently use only three image file formats on the Web: GIF, JPG, and PNG. A new format,
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
Chapter 8 Graphics and Color
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
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.
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.
Week 8 Graphics and Color. 8-2 Understanding Graphic Files Formats.
HTML Boot Camp: Rules and Images
IT Introduction to Website Development Welcome!
Chapter 7 Graphics and Color. 2 Principles of Web Design Chapter 7 Objectives Understand the differences between the Web-based image file formats - GIF,
XHTML Images. Images are important Purpose: to enhance your web site. Add only when they complement or add additional impact to your message.
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 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.
Chapter 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
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.
Macromedia Dreamweaver MX 2004 Design Professional And Graphics WORKING WITH TEXT.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Adobe Photoshop CS3 Revealed – Chapter 16 FOR THE WEB CREATING IMAGES.
Introduction to Computer Graphics Chapter 1. Agenda Definition Environment for Interactive Graphics Computer Graphics Applications Classification of applications.
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.
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
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.
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.
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.
Images. Working with Images What is the difference between the GIF and JPEG formats? GIF – Graphic Interchange Format Limit to 256 colors Often used for.
REEM ALMOTIRI Information Technology Department Majmaah University.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Web Development & Design Foundations with HTML5 7th Edition
Graphics (Characteristics 1)
Web Design and Development
Creating Images for the Web
Web Programming– UFCFB Lecture 7
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Attribute of heading, <p> and <hr> tag
Presentation transcript:

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 Text Create an Image Label Add Copyright Text to Images Align an Image Horizontally Align an Image Vertically Center an Image Wrap Text Between Images Stop Text Wrap Set an Image Border Add Space Around an Image Add a Background Image Create an Image Banner

Understanding Web Page Images You can currently use only three image file formats on the Web: GIF, JPG, and PNG – A new format, SVG, is not yet in common use These formats all compress images to create smaller files – Knowing which file format to use for which type of image is important If you choose the wrong file type, your image won’t compress or display properly

GIF (Graphics Interchange Format) GIF uses a lossless compression technique, meaning that no color information is discarded when the image is compressed The color depth of GIF is 8-bit, allowing a palette of no more than 256 colors GIF excels at compressing and displaying flat color areas, making it the logical choice for line art and color graphics

GIF Transparency With GIF files, you can choose any one color in an image to appear as transparent in the browser The background color or pattern will show through the areas that you have designated as transparent Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle

Transparent and nontransparent GIFs

GIF Animation The GIF format lets you store multiple images and timing information about the images in a single file This means that you can build animations consisting of multiple static images that play continuously, creating the illusion of motion

JPG or JPEG (Joint Photographic Experts Group) JPG is best for photographs or continuous tone images JPGs are 24-bit RGB images that allow millions of colors JPGs use a “lossy” compression routine especially designed for photographic images – When the image is compressed, some color information is discarded, resulting in a loss of quality from the original image

JPG (continued) When you create the JPG file, you can also manually balance the amount of compression versus the resulting image quality The higher the compression, the lower the image quality – You can play with this setting to create files that are as small as possible but still look good Many photos can sustain quite a bit of compression while still maintaining image integrity

PNG (Portable Network Graphics) A royalty-free file format that is intended to replace GIF This lossless format compresses 8-bit images to smaller file sizes than GIF PNG supports transparency and interlacing but not animation

SVG (Scalable vector graphics) A new standard from the W3C A language for describing two-dimensional graphics using XML SVG graphics are scalable to different display resolutions and are printable Not yet supported by most browsers

Insert an Image The tag defines an image in an HTML page. The tag has two required attributes: src and alt. Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The tag creates a holding space for the referenced image. Tip: To link an image to another document, simply nest the tag inside tags.

Image Attributes and Values AttributeValueDescription align top bottom middle left right Specifies the alignment of an image according to surrounding elements alttextSpecifies an alternate text for an image borderpixelsSpecifies the width of the border around an image heightpixelsSpecifies the height of an image hspacepixelsSpecifies the whitespace on left and right side of an image srcURLSpecifies the URL of an image vspacepixelsSpecifies the whitespace on top and bottom of an image widthpixelsSpecifies the width of an image titletextSpecifies a LABEL for an image

Example of Image tag

Add Copyright Text to Images Type © to create the copyright symbol. © 2013 Khawarizmi College, All rights reserved. In this example, a line break tag ( ) puts the copyright text on a new line. The copyright text appears in the browser window.

Center an Image Click before the tag and type. Click inside the tag and type ALIGN=”center”. Click after the closing bracket of the tag and type. The image appears centered on the Web page. Example

Stop Text Wrap Click where you want to end the text wrap and type, replacing ? With the margin you want to clear, either left, right, or all. The text wrapping ends at the selected point on the page. In this example, the next paragraph starts on a different line from the images.

Add a Background Image Click inside the tag and type BACKGROUND=”?”, replacing ? with the path to the image file you want to use. The Web browser displays the image as the page background. Example:

Create an Image Banner At the top of the page, before any body text, type, replacing ? with the path to the banner file you want to use. Type WIDTH=”? ” within the tag, replacing ? with a value in pixels. Type HEIGHT=”? ” within the tag, replacing ? with a value in pixels. The Web browser displays the image as a banner at the top of the page. Example:

Lab3 Write a code in HTML to achieve the following tasks: Insert an Image Specify an Image Size Add Alternative Text Create an Image Label Add Copyright Text to Images Align an Image Horizontally Align an Image Vertically Center an Image Wrap Text Between Images Stop Text Wrap Set an Image Border Add Space Around an Image Add a Background Image Create an Image Banner