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.

Slides:



Advertisements
Similar presentations
Web Design Vocab 3 PNG, JPG, GIF, MP3, MPEG.
Advertisements

Creating Pages in XHTML
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.
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.
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.
AdvWeb-1/12 DePaul University SNL 262 Web Page Design Chapt 10 - Putting Graphics on A Web Page Instructor: David A. Lash.
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 5 Web Graphics Styling Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
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.
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
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
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.
 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 (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Images in web pages. Images Why do we use images? They add interest, and keep the user from being bored They convey information –Charts are easier to.
Images in HTML PowerPoint How images are used in HTML.
Lists, Images, Tables and Links. Lists Unordered List The first item The second item The third item The fourth item Ordered List 1.The first item 2.The.
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.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
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.
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”
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Macromedia Dreamweaver MX 2004 Design Professional And Graphics WORKING WITH TEXT.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
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.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
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.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Adding Images to Your Web Page Web Design Section 5-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
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.
WRA 210: 10/7/13 IMAGES. TODAY’S AGENDA Reminder about Module 8 - test your links!Module 8 Overview of hierarchies, naming How images work on the web.
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
 Pictures  Page backgrounds  Element backgrounds (list items!)  Link displays (arrows)  List markers.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Images.
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
Hosted by Coach Slanina
Adding Images to Your Web Page
HTML Images CS 1150 Spring 2017.
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
Graphics (Characteristics 1)
HTML Images CS 1150 Fall 2016.
Adding Images.
Adding Images.
Hyperlinks, Images, Comments, and More…
Adding Images.
Adding Images.
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

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 under resources then place them in the images folder of your school of programming folder.

chcslonline.org3 GIF GIF stands for graphic interchange format. GIF images have the extension.gif it has a smaller file size and a lower quality. Its color is capped at 256 colors. It uses a lossless compression format and it supports animation.

chcslonline.org4 JPEG Jpeg stands for joint photographic experts group. Images can have more than 256 colors. The size and quality of the image is higher. It uses a loss compression format which means image quality continues to go lower the more you compress the image. It doesn’t support animation.

chcslonline.org5 PNG It is similar to gif, but an improvement to gif. It stands for Portable Network Graphics. It uses lossless data compression. It has the file extension.png but it doesn’t support animation.

chcslonline.org6 Inserting Images on the Web Page To insert images on a web page, the tag is used. It has no closing tag and is empty. it takes attributes. The attributes it takes are: src: the src attribute is used to specify the address or url where the image is located. For this lecture, I have placed three images in the images folder namely, car. jpg, moon. jpg, and work. jpg.

chcslonline.org7 attributes src : is used to specify the web address of the image. Like we just did. we can also specify an external or internet url of an image to insert by writing the image url. alt : specifies the alternative text for an image incase the image does not load or is not found. It is good that the value of the alt attribute describes the image. Screen reader application reads the value of the alt attribute. Height and width: they are used to resize and image. They do not change the file size. No matter how small you make the image, the file size is not affected. specifying the height and width of an image prevents it from flickering when the image loads. Style: is used as an alternative for specifying the height and width of an image. The advantage of using the style over height and width is that it prevents the style sheet from changing the default size of the image. Map: it defines clickable areas in the image.

chcslonline.org8 Practical 3.1 Question 1: create a page in the pages folder called products.html and Place the image of the car in it. The image should have a height of 250px and a width of 200px and the caption “2015 model of the red car”.

chcslonline.org9 Solution practical 3.1 First of all, open your template file and change the text between the title tags to products. Then save it as products.html in the pages folder. Next open your index.html file and create a link to the products page by writing the following between the body tags Products When you get to the products page, you will need a link that will take you back to the home page. so open your products.html page and write the following code between the body tags Home

chcslonline.org10 Now to insert the image on the products page. write the following code on the products page just below the hyperlink tag. This will insert the image on the page but note that the image is very large. Supposing we want several other images on the same page, we have to use the height and width attribute to resize the image. we also need a text that will display in case the image fails to load this is done with the alt attribute. Change your img tag to have the height, width and alt attribute. Run your file to see what it looks like. Now we need the link to be above the Image. What we need to do is to put a break tag after the hyperlink before the img tag so the body part of your products page should look like this

chcslonline.org11 Home Now we want to insert the caption on the image. This is done using the figure and figcaption tag. Just above the img tag, put the following and close it like this just below the img tag. Now to insert a caption use the figcaption tag like this After or before the tag 2015 model of a red car If you want the caption above the image, put the figcaption above the img tag and put it below if you want it below the image.