GRAPHICS(IMAGES) Explained By: Sarbjit Kaur.

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.
Iframes & Images Using HTML.
Cos 125 DAY 14. Agenda Assignment #3 Graded 7 A’s, 2 B’s, 1 C Problems are mostly caused by not following the instructions Assignment 4 Posted Due March.
1 IMAGES: A Picture Is Worth a Thousands Words, Image Formats Image Sizes Graphic Tips Image Tag Attributes Centering Images.
Computer Science 1611 Internet & Web Creating Webpages with Style Hypertext and the HTML Markup Language (continued)
Cos 125 DAY 14. Agenda Assignment #3 Graded 11 A’s, 5 non-submits Problems include Not uploading assignment sheet in WebCT Not uploading graphics to web.
Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
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.
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.
Using images with XHTML Please use speaker notes for additional information!
1 Mastering the Internet and HTML Images and Image Tags.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
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.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
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.
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.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
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.
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”
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.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
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.
1 Creating Links Lesson 2. 2 In the center column type : Home | Order Now | Contact Us This is the navigation button which will link to the other pages.
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.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
Part 4 Text & Fonts © UNT in partnership with TEA1IT: Web Technologies - HTML Scripting.
Images.
Images.
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Enhancing Your Web Site
Linking With Graphics INP150: Basic HTML March 25, 2002.
JAVA Applets Pavan D.M..
Hosted by Coach Slanina
Adding Images to Your Web Page
HTML Images CS 1150 Spring 2017.
COMPUTING FUNDAMENTALS
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Creating a Web Site with Links
Graphics (Characteristics 1)
Font tag and its attributes
Introduction to HTML II
Images.
Images.
HTML (Hypertext Markup Language )
Images.
HTML Images CS 1150 Fall 2016.
Pertemuan 1b
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Project 4 Creating an Image Map.
Pertemuan 1 Desain web Pertemuan 1
Attribute of heading, <p> and <hr> tag
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

GRAPHICS(IMAGES) Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh

USING GRAPHICS IN WEB PAGE <IMG> Images can be placed in a web page by using <IMG> tag. There are many image formats available today, but the most widely used among them are gi f and jpeg. The gi f format is considered superior to the jpeg format for its clarity and ability to maintain the originality of an image without lowering its quality. Using tools such as GIF constructor or Adobe Photoshop images can be created. It is an empty tag (only start tag, no end tag) and is written as: <IMG SRC = image_URL> SRC – Source of the image file image_URL – represents the image file with its location. Example: <IMG SRC=file:///C:/rose.GIF> Here, image_URL =file:///C:/rose.GIF, it means image is available in the Hard Drive C: on the local hard disk.

Attributes used with <IMG> are: - ALIGN HEIGHT AND WIDTH VSPACE and HSPACE ALT BORDER

ALIGN Attributes ALIGN: used to set the alignment of the text adjacent to the image. It takes the following values: A L IGN = LEF T - Di s p l a y s ima g e o n l e f t s i d e a n d t h e subsequent text flows around the right hand side of that image. ALIGN = RIGHT - Displays the image on the right side and the subsequent text flows around the left hand side of that image. ALIGN = TOP - Aligns the text with the top of the image. ALIGN = MIDDLE - Aligns the text with the middle of the image. ALIGN=BOTTOM - Aligns the text with the bottom of the image.

HEIGHT AND WIDTH Height and Width of an image can be controlled by using the HEIGHT and WIDTH attributes in the <IMG> tag as follows: Example: <IMG SRC= flower.gif HEIGHT=320 WIDTH=240>

VSPACE and HSPACE White space around an image can be provided by using HSPACE(Horizontal Space) and VSPACE (Vertical Space) attributes of the <IMG> tag. These attributes provide the space in pixels. Example: <IMG SRC=flower.gif VSPACE=30 HSPACE=25>

ALT (Alternative Text) This attribute is used to give alternative text that can be displayed in place of the image. This is required when the user needs to stop display of images while retrieving a document in order to make the retrieval faster, or when the browser does not support graphics. It is also used a tool tips – displaying description of the image when the mouse is over the image. Example: <IMG SRC=rose.gif ALT = “rose">

BORDER Border around the image can be controlled by using BORDER attribute of <IMG> tag. By default image displays with a thin border. To change the thickness or turn the border off, the value in pixels should set to BORDER attribute. Example: <IMG SRC=rose.gif BORDER=0> BORDER =0 to Turn the Border off

Example: Showing the use of Image Attributes <HTML> <HEAD> <TITLE> Use of Image Attributes </TITLE> </HEAD> <BODY> <IMG SRC=rose.gif HSPACE=5 VSPACE=5 BORDER=5 ALT=rose ALIGN=LEFT> National Institute of Open Schooling. National Institute of Open Schooling. </BODY> </HTML>