Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

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.
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 4 Marking Up With Html: A Hypertext Markup Language Primer.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
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.
Using HTML Tables.
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 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.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Creating and Editing a Web Page
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.
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.
HTML Boot Camp: Rules and Images
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
IT Introduction to Website Development Welcome!
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) –
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
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.
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.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
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.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
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.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
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.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
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.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Part 4 Text & Fonts © UNT in partnership with TEA1IT: Web Technologies - HTML Scripting.
Marking Up with XHTML Tags describe how a web page should look
Inserting and Working with Images
GRAPHICS(IMAGES) Explained By: Sarbjit Kaur.
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
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
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for Design XHTML

Copyright (c) 2004 Prentice-Hall. All rights reserved. 2 Visual Summary  Image Formats  Graphical Image Format (GIF)  Indexed color  Looping  Compression  Transparency  Joint Photographic Experts Group (JPG or JPEG)  Portable Network Graphics (PNG)  LZW compression

Copyright (c) 2004 Prentice-Hall. All rights reserved. 3 Inserting Images into Web Pages  The tag – specifies an image  This is an empty tag (no text follows it)  The src attribute – specifies file where image comes from  Example syntax:  The border attribute – allows a surrounding line

Copyright (c) 2004 Prentice-Hall. All rights reserved. 4 Identifying Location of an Image  Path – specific directory location of the image file  Specify local directory – if image in same directory as Web page   Specify remote directory – if image in different folder on same machine as Web page   Specify Web URL – if image on a different computer on the Internet 

Copyright (c) 2004 Prentice-Hall. All rights reserved. 5 Effects of and src Image generated by Image generated by No path needed if.jpg file is in same location as Web page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 6 Effects of border One-pixel border Eight-pixel border

Copyright (c) 2004 Prentice-Hall. All rights reserved. 7 Why Use Alternate Text?  Bandwidth – the speed of a user’s connection to the Internet  Images take a long time to load  Some users turn off images in their browser  alt attribute displays alternate text if images are turned off  Tool tip – text that appears when mouse hovers over an image  The alt attribute displays a tool tip associated with an image

Copyright (c) 2004 Prentice-Hall. All rights reserved. 8 Effects of Setting Alternate Text Tool tip text appears This takes place when user hovers mouse over the image

Copyright (c) 2004 Prentice-Hall. All rights reserved. 9 The Tag  XHTML 2.0 does not include  is used instead  Example usage:  id="baby" type="image/jpeg"  data="baby.jpg" width="152" height="160">  A baby in a cradle. 

Copyright (c) 2004 Prentice-Hall. All rights reserved. 10 Using the Tag’s Align Attribute  Controls relationship of image with nearby text  Five possible values  Top  Bottom (Default)  Middle  Left  Right

Copyright (c) 2004 Prentice-Hall. All rights reserved. 11 Image Alignment Behaviors  Text aligns to the portion of the image specified by align attribute  e.g. – Top makes text align to the top of the image  Top, bottom, middle – only one line of text appears beside image  Right, left – text wraps around image

Copyright (c) 2004 Prentice-Hall. All rights reserved. 12 Effect of Image Alignment Top alignment: Middle alignment:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 13 Effect of Image Alignment (continued) Left alignment: Right alignment: Left and right alignment causes remaining content to wrap around the image. Note that Upcoming Books is at same level as right-aligned image.

Copyright (c) 2004 Prentice-Hall. All rights reserved. 14 Using the tag's Clear Attribute  By default, text displays next to an image  The clear attribute can separate image from text  Syntax options  – forces text to move to section with nothing to the right  – forces text to move to section with nothing on either side

Copyright (c) 2004 Prentice-Hall. All rights reserved. 15 Effect of Clear Attribute Force Upcoming Books header to appear below right-aligned image:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 16 Scaling Images  Scaling – reducing or enlarging  Scaling affects image quality  Resolution – clarity and definition of image  Scaling up results in pixelated image  Can see individual pixels when image is scaled up  Reduced resolution  Scaling down forces pixels into too small space

Copyright (c) 2004 Prentice-Hall. All rights reserved. 17 Using Image Sizing Attributes  Two attributes  Width  Height  Both specify pixel sizing  Advantage of using width and height  Saves time for browser

Copyright (c) 2004 Prentice-Hall. All rights reserved. 18 Effects of Image Sizing

Copyright (c) 2004 Prentice-Hall. All rights reserved. 19 Image Attributes for Spacing  vspace – adds vertical space to image (above and below)  hspace – adds horizontal space to image (left and right)  Both attributes measure space in pixels

Copyright (c) 2004 Prentice-Hall. All rights reserved. 20 Effect of Vertical and Horizontal Spacing 20 pixels of vertical space above the image 50 pixels of horizontal space to the left and right of the image

Copyright (c) 2004 Prentice-Hall. All rights reserved. 21 The Character Entity  character entity – a code in XHTML that produces a symbol  Begins with & symbol and ends with a semicolon  Not a tag or attribute  represents a space character  Putting spaces in XHTML document does not create spaces in Web page  will create space in Web page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 22 Effect of Non-Breaking Space Upcoming Books 10 non-breaking spaces

Copyright (c) 2004 Prentice-Hall. All rights reserved. 23 Lowsrc (Low Source) Images  Concepts  Low source images  The lowsrc attribute  Quality and effects of low source images  Hands-on Exercise  Specify a Lowsrc Image

Copyright (c) 2004 Prentice-Hall. All rights reserved. 24 Low Source Images and the lowsrc Attribute  Low source image – smaller version of a final image  Downloaded and displayed while final version is loading  Temporary, lower quality  tag’s lowsrc attribute 

Copyright (c) 2004 Prentice-Hall. All rights reserved. 25 Horizontal Rule and its Attributes  Horizontal rule – straight line that goes from the left to right side of screen  Useful for dividing a web page into sections  tag  An empty tag  Attributes include  Width –percentage of screen line covers  Noshade – indicator of shading  Color

Copyright (c) 2004 Prentice-Hall. All rights reserved. 26 Effects of Horizontal Rule Grey bar displays as a result of

Copyright (c) 2004 Prentice-Hall. All rights reserved. 27 Effects of Horizontal Rule Attributes Unshaded, shorter, blue bar displays as a result of