Inserting and Working with Images

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Working with Images and HTML
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 8: Image Techniques ©2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
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.
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.
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.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
Web Technologies Website Development Trade & Industrial Education
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.
Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.
1 Mastering the Internet and HTML Images and Image Tags.
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) –
Website Development with Dreamweaver
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
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.
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.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
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.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Lesson 6 - Images. Let’s talk about resolutionLet’s talk about resolution.
REEM ALMOTIRI Information Technology Department Majmaah University.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
CSS.
Unit G - Images. Unit G - Images The great questions of life? How does an airplane stay up? Where does the tooth fairy get her money? Why is the sky.
Laying out Elements with CSS
Working with Cascading Style Sheets
Formatting Text with CSS
CSS Layouts: Grouping Elements
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
Chapter 4 Adding Images.
HTML Images CS 1150 Spring 2017.
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
Objectives Create a figure box Add a background image
Chapter 2 Adding Web Pages, Links, and Images
Unit G - Images. Unit G - Images The great questions of life? How does an airplane stay up? Where does the tooth fairy get her money? Why is the sky.
Inserting and Working with Links
Using HTML Tables SWBAT: - create tables using HTML
Chapter 5 Graphics & Text Styling Basics Key Concepts
DREAMWEAVER MX 2004 Chapter 4 Working with Images
Cascading Style Sheets™ (CSS)
How to work with images and icons Murach's HTML and CSS, 4th Edition
Lesson 7: Video, Audio and Image Techniques
HTML Images CS 1150 Fall 2016.
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Introduction to HTML.
Project 4 Creating an Image Map.
Attribute of heading, <p> and <hr> tag
Presentation transcript:

Inserting and Working with Images

Objectives Evaluate image file types Insert images Insert a background image Mark images as figures Create a figure caption Use images as links HTML 5 and CSS 3, Illustrated, 2nd Ed.

Objectives (continued) Create an image map Define additional hotspots Add a favicon and touch icons HTML 5 and CSS 3, Illustrated, 2nd Ed.

Evaluate Image File Types Images can be added to a web page by linking to a separate file Different image file types: Bitmap image: represented as a grid of dots of specified colors e.g., JPG, GIF, and PNG Vector graphic: encoded as geometric shapes e.g., SVG HTML 5 and CSS 3, Illustrated, 2nd Ed.

Evaluate Image File Types (continued) Common file formats: JPG: optimized for many colors photographs GIF: optimized for areas with defined borders, few colors Line drawings Supports transparent pixels PNG: allows user to specify opacity level for areas SVG: no decrease in quality when scaled HTML 5 and CSS 3, Illustrated, 2nd Ed.

Evaluate Image File Types (continued) Bitmap should be created and formatted with its use on web in mind Created and displayed at set resolution and size Resolution: how close dots should be in the output Measured in dots per inch (dpi) High resolution = more detail, large file size HTML 5 and CSS 3, Illustrated, 2nd Ed.

Evaluate Image File Types (continued) Size: length and width of image Pixels: individual dots that make up the image Bitmaps display optimally at native size Scaling affects download time and image quality HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert Images img element: used to add an image to HTML document One-sided element Includes two attributes: src: path and filename to the image file alt: text to display if image is unavailable Inline element by default Can be wrapped in block element for alignment purposes Can be within text, aligned to text baseline HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert Images (continued) Width and height attributes: Not required Can be used to specify the native dimensions of an image Allow a visual user agent to maintain blank space preserving the layout of the web page Always in pixels, no need to specify units HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert Images (continued) img elements and display HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Background Image Image can be background of web page or element Specify path and filename as value for background property Important to maintain contrast between background and text Specify background color in case image not available or not supported HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Background Image (continued) Tiling: displaying images repeatedly Used by user agents to fill screen space Examples of syntax of background property: background: url(“url goes here”) background-color When property-value pairs conflict, the one that occurs later in the rule takes precedence HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Background Image (continued) Code for background color and image HTML 5 and CSS 3, Illustrated, 2nd Ed.

Mark Images as Figures figure element: used to mark images that add information to a web page Semantic element Enables user agent to link figure element contents to another location without affecting information conveyed Mark as a figure if the page would be complete even if the figure is not shown HTML 5 and CSS 3, Illustrated, 2nd Ed.

Mark Images as Figures (continued) Code for fig and img elements HTML 5 and CSS 3, Illustrated, 2nd Ed.

Create a Figure Caption A figure caption provides context, explantion, or credit. A figure caption is different than alt text. alt text should describe an image without adding additional information Figure caption text can add information HTML 5 and CSS 3, Illustrated, 2nd Ed.

Create a Figure Caption (continued) Use the figcaption element nested in a figure element as shown below title attribute specifies additional image information Browsers display as floating text during mouse over or alt text when not specified HTML 5 and CSS 3, Illustrated, 2nd Ed.

Use Images as Links Images can be used as links Enclose img element within an a element Browsers typically add border around linked image to display link state Use pseudo-classes to modify link state colors Use CSS border property to remove the border HTML 5 and CSS 3, Illustrated, 2nd Ed.

Use Images as Links (continued) Examples of code for creating an img element as a link HTML 5 and CSS 3, Illustrated, 2nd Ed.

Create an Image Map An image map is HTML code associated with an image that specifies one or more shapes using sets of coordinates and provides a link target for each shape Each linked shape is known as a hotspot Shape values can be rect, poly, or circle HTML 5 and CSS 3, Illustrated, 2nd Ed.

Create an Image Map (continued) Coordinates are measured from the top-left corner Use third-party software to generate the coordinates Code for rect shape in an image map HTML 5 and CSS 3, Illustrated, 2nd Ed.

Define Additional Hotspots rect coordinates based on top-left corner and bottom-right corner of shape poly coordinates based on each vertices in the shape circle coordinates based on center point and radius of the circle HTML 5 and CSS 3, Illustrated, 2nd Ed.

Define Additional Hotspots (continued) Code for hotspots and resulting image HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Favicon and Touch Icons Favicon: icon associated with web page in the address bar and on bookmarks 16 x 16 pixels Saved in .ico format To specify for all pages of website, place in root folder for the site To specify for individual page use link element HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Favicon and Touch Icons (continued) Touch icon: displayed on users screen when user creates a shortcut on a mobile device Characteristics of favicons and touch icons shown below HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Favicon and Touch Icons (continued) Code for favicon and resulting page HTML 5 and CSS 3, Illustrated, 2nd Ed.

Insert a Favicon and Touch Icons (continued) Code and examples of touch icons HTML 5 and CSS 3, Illustrated, 2nd Ed.

Summary Bitmap images: represented as grid of dots of specified colors Vector graphic: encoded as geometric shapes Quality of image is determined by resolution and size Image types include JPEG, PNG, GIF, and SVG HTML 5 and CSS 3, Illustrated, 2nd Ed.

Summary (continued) Use one sided img element to insert image Uses src and alt attributes background element used to insert a background image, which browsers tile by default figure element: used to mark images that add information to web page HTML 5 and CSS 3, Illustrated, 2nd Ed.

Summary (continued) figcaption element can be used to include figure caption, figcaption element is nested within a figure element title attribute can also be used to provide additional information about an image Images can be used as links when enclosed in an a element HTML 5 and CSS 3, Illustrated, 2nd Ed.

Summary (continued) Image maps can be used to link shapes (called hotspots) in an image to different targets Favicon is an icon associated with web page and is displayed in the address bar Touch icons displayed when a user saves a shortcut to a mobile device HTML 5 and CSS 3, Illustrated, 2nd Ed.