SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
HTML Graphics

HTML Graphics
1

What are the commonly used image file formats on the Web? Describe them.
The three most widely accepted image file formats on the Web are: .GIF, .JPG, and .PNG. All of the
formats compress the images to create smaller files that download much more quickly than the
original image.
GIF - Graphics Interchange Format
GIF uses a compression technique that preserves all of the color information for the image.
The .GIF format has an 8-bit color depth that allows for the use of 256 colors (as 28 = 256).
The fewer the number of colors that are used in a .GIF file, the greater the compression and the
smaller the file size.
The .GIF file is ideal for line art and color graphics because it is excellent at compressing and
displaying flat color areas.
It uses a simple compression algorithm.
Because of the color depth limitation, however, the .GIF format is limiting and should not be
used for photographs or complex graphics that have gradation in colour.
GIF Transparency:
With GIF files we can choose one color in an image to appear as transparent in the browser
The background color or pattern will show through the areas that we marks as transparent.
Using transparent areas allows us to create graphics that appear to have an irregular shape instead
of a rectangle.
GIF Animation
The .GIF format allows a designer to store multiple images and timing information about the
images in a single file.
This allows the creation of animations consisting of multiple static images that rotate, creating
the illusion of motion.
When creating a GIF animation, a designer can adjust the amount of time between frames and the
number of times that the animation plays.
GIF animation does not require browser plug-ins and does not have large download times.
Some of the tools through which we can create GIF animation are: ULead GIF Animator, and
Microsoft Liquid Motion.
Disadvantages of animated GIF images:
They only support 256 color palette.
They can only animate in browsers that support animated gifs.
They cannot be edited once they are encoded as an animated gif. If we edit animated GIF, we
will lose the animation sequence when it is saved.
JPG - Joint Photographic Experts Group (JPG or JPEG) image file format.
JPGs support millions of colors since they are 24-bit, so they are ideal for photographs or
continuous tone images.
JPGs use a lossy file compression technique that discards some colors, so there may be a loss of
quality from the original image.
The compression algorithm is more complex for JPG files.
When saving an image in .JPG format, a slider lets the designer choose the quality of the image.
The higher the compression, the smaller the size of the image file and the quicker the download
time, but the lower the image quality.
Images can be converted into JPG format using tools such as Adobe PhotoShop.
This format is not suitable for images with text and large blocks of solid color, and simple shapes
with crisp edges. This is because when the image is compressed the text, color or lines may blur
resulting in image that is not as sharp.

Prof. Mukesh N. Tekwani

Page 1 of 4
HTML Graphics

PNG - Portable Network Graphics format
This was specifically designed for use on the Web.
It has better compression rates than GIF images and therefore images are smaller in size.
It uses a compression technique that retains all of the color information, so it is not as efficient at
compressing image files as .JPG.
PNG supports 8-bit indexed-color, 16-bit grayscale, and 24-bit true color images.
PNG supports transparency and interlacing but not animation.
Certain browsers do not support PNG format.

2

What is interlacing and progressive displays?
We can save images in an interlaced or progressive format.
A low resolution image is shown first, followed by one or more passes that refine the image until
the full-resolution image is displayed. This is known as interlacing.
Both interlacing and progressive display formats gradually display an image in a pre-specified
number of passes as the data arrives in the browser.
The only advantage to saving images in these formats is that the user will see a blurred image
that gradually clears, giving them something to look at as it downloads.
The biggest disadvantage to saving an image in this format is browser support. Older browsers
may not display the image properly.

3

Which image format is the best for the Web?
GIFs should be used for simple colored graphics and line art.
The .GIF format can also be used for animation and transparency.
The .JPG format is best for 24-bit full-color photographic images and complex graphics.
The .PNG format can be used instead of GIFs, but all browsers do not support this format. PNG
does not replace JPGs since PNGs do not compress 24-bit images as well as .JPG.

4

Computer Color Basics:
Color depth is the amount of data used to create color on a display.
Dithering occurs when a browser comes across a color it does not support. The browser then
attempts to mix its own colors to create a similar color.
Banding refers to the effort to match the closest colors from the GIFs palette to the original colors in
a photo.

5

Discuss the IMG element

The <IMG> markup element is used to place graphics or images on a Web page. The <IMG>
element is an empty element, so it does not require a closing tag. The <IMG> element only needs the
SRC attribute to display an image in a browser. There are other attributes that can be used to select
how and where the image appears in the browser.
Attribute
Use
ALIGN
Specifies the position of the image in relation to the surrounding text.
Displays an alternate string of text instead of an image if the user has a text-only
ALT
browser or has graphics turned off. The ALT value is displayed as a pop-up
window when a mouse points to the image.
Determines whether a border appears on the image. State the border value in
BORDER
pixels. We can use this attribute to turn off the hypertext border if the image is a
link.
HEIGHT
Specifies the height of the image in pixels.
Specifies the amount of horizontal white space on the left and right sides of the
HSPACE
image in pixels.
The only required attribute, SRC specifies the URL of the graphic file you want to
SRC
display. As with any URL, the path must be relative to the HTML file. Image
mukeshtekwani@hotmail.com
Page 2 of 4
HTML Graphics

VSPACE
WIDTH

filenames are case-sensitive!
Specifies the amount of vertical white space on the top and bottom sides of the
image in pixels.
Specifies the width of the image in pixels.

ALIGN, BORDER, VSPACE, and HSPACE have been deprecated in HTML 4.0 in favor of CSS.
The table below shows the replacement attributes:
Deprecated
Attribute
ALIGN

BORDER
HEIGHT
HSPACE and
VSPACE

6

Equivalent CSS Property
FLOAT allows you to flow text around an image or other object.
Example:
IMG {FLOAT: LEFT}
BORDER lets you set a border on an image, or remove the border from a
linked image.
Specifies the height of the image in pixels.
The PADDING or MARGIN properties set white space around an image.
You can control individual sides of the image, or apply white space
around the entire image.

Write a note on background images.
The BACKGROUND attribute is used to tile images across the background of a Web page.
Any image can be used as a background image, but design principles need to be kept in mind
when using images in the background.
Complex backgrounds can confuse and distract the user.
Dark or complex backgrounds should be avoided if a site contains a lot of text. Most text is
difficult to read against a background image unless the image is light enough to provide good
contrast for the text.
Instead of using a dark, busy image to tile a page background, instead choose a light, simple
image.
CSS allows more control over background image tiling that standard HTML. To apply a
background image with CSS, use the <BODY> element as the selector with the
BACKGROUND property (BODY {BACKGROUND: URL (texture4.jpg)}). Note the URL
syntax in the rule. The path and filename are contained within parentheses.
The default for CSS background graphics is the same as using the BACKGROUND attribute.
The image tiles across the page.
The CSS BACKGROUND-REPEAT property allows a designer to create a single column or row
of an image rather than tiling the image completely across the page. The BACKGROUNDPOSITION property can also be used to change the position of the background graphic.

7

What are transparent spacer GIFs?
We can set one color of a .GIF or .PNG to be transparent.
A single pixel graphic of one color set to be transparent can solve spacing problems that cannot
be solved with standard HTML code.
The WIDTH and HEIGHT attributes can be used to change the transparent spacer GIF to any
size desired.
The transparent spacer GIF is sometimes the only way to achieve a desired result.

8

How can we add white space around an image?
The designer should add white space around images to reduce clutter and improve readability.
To increase the white space around an image, the HSPACE and VSPACE attributes can be added

Prof. Mukesh N. Tekwani

Page 3 of 4
HTML Graphics
to the <IMG> element by specifying the pixel amount.
VSPACE affects both the top and bottom sides while HSPACE affects the left and right sides.
White space can also be added to a graphic by using graphic editing software.
CSS offers more control over image white space through the application of the margin properties
to individual sides of an image.

9

What is lossless file compression?
Lossless file compression is a technique (algorithm) that allows the exact original data to be
constructed from the compressed data.
This technique is used where it is important that the original and decomposed data must be
identical.
This technique is used in many applications e.g., in compressing application programs, in the ZIP
file utility, in compressing program files and text documents.
GIF and PNG image file formats use the lossless compression technique.
Huffman coding algorithm is used for lossless compression.
Lossless compression gives low compression ratios.

10 Explain Lossy Image Compression
Lossy image compression is a technique (algorithm) in which some data is lost when the image is
decompressed.
Lossy compression is used for multimedia files such as still images, audio and video, streaming
media and internet telephony.
The JPEG file format has lossy compression.
Lossy compression gives a very high compression ratio.
Lossy compression technique is necessary when large multimedia files have to be transferred
over a network; reducing the file size is important in this case.
A picture is converted to a digital file by considering it to be an array of dots, and specifying the
color and brightness of each dot. If the picture contains an area of the same color, it can be
compressed without loss by saying "200 red dots" instead of "red dot, red dot, ... red dot" 200
times.
Lossy compression works because in many cases files contain more information than is needed
for a particular purpose. For example, a picture may have more detail than the eye can distinguish
when reproduced.

Page 4 of 4

mukeshtekwani@hotmail.com

Contenu connexe

Tendances (20)

css-presentation.ppt
css-presentation.pptcss-presentation.ppt
css-presentation.ppt
 
CSS Grid
CSS GridCSS Grid
CSS Grid
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Css box-model
Css box-modelCss box-model
Css box-model
 
Javascript
JavascriptJavascript
Javascript
 
Jsp chapter 1
Jsp chapter 1Jsp chapter 1
Jsp chapter 1
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-services
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Action Bar in Android
Action Bar in AndroidAction Bar in Android
Action Bar in Android
 
IIS
IISIIS
IIS
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
Dynamic CSS: Transforms, Transitions, and Animation Basics
Dynamic CSS: Transforms, Transitions, and Animation BasicsDynamic CSS: Transforms, Transitions, and Animation Basics
Dynamic CSS: Transforms, Transitions, and Animation Basics
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
 
jQuery
jQueryjQuery
jQuery
 
Css and its types
Css and its typesCss and its types
Css and its types
 
CSS Animations & Transitions
CSS Animations & TransitionsCSS Animations & Transitions
CSS Animations & Transitions
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 

En vedette

Python - Regular Expressions
Python - Regular ExpressionsPython - Regular Expressions
Python - Regular ExpressionsMukesh Tekwani
 
Java chapter 3 - OOPs concepts
Java chapter 3 - OOPs conceptsJava chapter 3 - OOPs concepts
Java chapter 3 - OOPs conceptsMukesh Tekwani
 
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useJava chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useMukesh Tekwani
 
Digital signal and image processing FAQ
Digital signal and image processing FAQDigital signal and image processing FAQ
Digital signal and image processing FAQMukesh Tekwani
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingMukesh Tekwani
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing filesMukesh Tekwani
 
Data communications ch 1
Data communications   ch 1Data communications   ch 1
Data communications ch 1Mukesh Tekwani
 
Chap 3 data and signals
Chap 3 data and signalsChap 3 data and signals
Chap 3 data and signalsMukesh Tekwani
 
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferChapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferWayne Jones Jnr
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programmingMukesh Tekwani
 

En vedette (19)

Java chapter 5
Java chapter 5Java chapter 5
Java chapter 5
 
Java 1-contd
Java 1-contdJava 1-contd
Java 1-contd
 
Python - Regular Expressions
Python - Regular ExpressionsPython - Regular Expressions
Python - Regular Expressions
 
Java chapter 3 - OOPs concepts
Java chapter 3 - OOPs conceptsJava chapter 3 - OOPs concepts
Java chapter 3 - OOPs concepts
 
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useJava chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
 
Java swing 1
Java swing 1Java swing 1
Java swing 1
 
Html tables examples
Html tables   examplesHtml tables   examples
Html tables examples
 
Digital signal and image processing FAQ
Digital signal and image processing FAQDigital signal and image processing FAQ
Digital signal and image processing FAQ
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
 
Jdbc 1
Jdbc 1Jdbc 1
Jdbc 1
 
Data Link Layer
Data Link Layer Data Link Layer
Data Link Layer
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing files
 
Java chapter 3
Java   chapter 3Java   chapter 3
Java chapter 3
 
Java misc1
Java misc1Java misc1
Java misc1
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
Data communications ch 1
Data communications   ch 1Data communications   ch 1
Data communications ch 1
 
Chap 3 data and signals
Chap 3 data and signalsChap 3 data and signals
Chap 3 data and signals
 
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File TransferChapter 26 - Remote Logging, Electronic Mail & File Transfer
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 

Similaire à Html graphics

Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin htmlnobel mujuji
 
Animation in the web
Animation in the webAnimation in the web
Animation in the webVishal Polley
 
JPG vs. GIF vs. PNG
JPG vs. GIF vs. PNGJPG vs. GIF vs. PNG
JPG vs. GIF vs. PNGkay2
 
Week 6 Task File Formats
Week 6 Task   File FormatsWeek 6 Task   File Formats
Week 6 Task File Formatsguest2cf876
 
All About Graphics
All About GraphicsAll About Graphics
All About Graphicsmegweb
 
Power Point Presentation
Power Point PresentationPower Point Presentation
Power Point PresentationCharlCooper
 
About graphics-on-web
About graphics-on-webAbout graphics-on-web
About graphics-on-webTayyab Ahmed
 
File Formats Re-Submission
File Formats Re-SubmissionFile Formats Re-Submission
File Formats Re-Submissiontomwaumsley
 
Graphic File Formats
Graphic File FormatsGraphic File Formats
Graphic File Formatsbs07sjh
 
BMSC1103 presentation
BMSC1103 presentationBMSC1103 presentation
BMSC1103 presentationgueste8bf88
 
Graphic File Formats
Graphic  File  FormatsGraphic  File  Formats
Graphic File Formatsaidanbd
 
Image & Graphic Files
Image & Graphic FilesImage & Graphic Files
Image & Graphic Filesbs07d3p
 
File Types Pro Forma
File Types Pro FormaFile Types Pro Forma
File Types Pro FormaEmily-F
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web ImagesSteve Guinan
 

Similaire à Html graphics (20)

Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin html
 
Animation in the web
Animation in the webAnimation in the web
Animation in the web
 
Image Files Formats
Image Files FormatsImage Files Formats
Image Files Formats
 
Webquest
WebquestWebquest
Webquest
 
JPG vs. GIF vs. PNG
JPG vs. GIF vs. PNGJPG vs. GIF vs. PNG
JPG vs. GIF vs. PNG
 
Week 6 Task File Formats
Week 6 Task   File FormatsWeek 6 Task   File Formats
Week 6 Task File Formats
 
All About Graphics
All About GraphicsAll About Graphics
All About Graphics
 
Power Point Presentation
Power Point PresentationPower Point Presentation
Power Point Presentation
 
File types
File typesFile types
File types
 
About graphics-on-web
About graphics-on-webAbout graphics-on-web
About graphics-on-web
 
Chap16
Chap16Chap16
Chap16
 
File Formats Re-Submission
File Formats Re-SubmissionFile Formats Re-Submission
File Formats Re-Submission
 
Graphic File Formats
Graphic File FormatsGraphic File Formats
Graphic File Formats
 
Graphics
GraphicsGraphics
Graphics
 
Bmsc1103
Bmsc1103Bmsc1103
Bmsc1103
 
BMSC1103 presentation
BMSC1103 presentationBMSC1103 presentation
BMSC1103 presentation
 
Graphic File Formats
Graphic  File  FormatsGraphic  File  Formats
Graphic File Formats
 
Image & Graphic Files
Image & Graphic FilesImage & Graphic Files
Image & Graphic Files
 
File Types Pro Forma
File Types Pro FormaFile Types Pro Forma
File Types Pro Forma
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web Images
 

Plus de Mukesh Tekwani

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelMukesh Tekwani
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfMukesh Tekwani
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - PhysicsMukesh Tekwani
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion Mukesh Tekwani
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Mukesh Tekwani
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion Mukesh Tekwani
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversionMukesh Tekwani
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Mukesh Tekwani
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prismMukesh Tekwani
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surfaceMukesh Tekwani
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomMukesh Tekwani
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesMukesh Tekwani
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEMukesh Tekwani
 

Plus de Mukesh Tekwani (20)

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube Channel
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
 
Circular motion
Circular motionCircular motion
Circular motion
 
Gravitation
GravitationGravitation
Gravitation
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversion
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surface
 
Spherical mirrors
Spherical mirrorsSpherical mirrors
Spherical mirrors
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
 
Cyber Laws
Cyber LawsCyber Laws
Cyber Laws
 
XML
XMLXML
XML
 

Dernier

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Html graphics

  • 1. HTML Graphics HTML Graphics 1 What are the commonly used image file formats on the Web? Describe them. The three most widely accepted image file formats on the Web are: .GIF, .JPG, and .PNG. All of the formats compress the images to create smaller files that download much more quickly than the original image. GIF - Graphics Interchange Format GIF uses a compression technique that preserves all of the color information for the image. The .GIF format has an 8-bit color depth that allows for the use of 256 colors (as 28 = 256). The fewer the number of colors that are used in a .GIF file, the greater the compression and the smaller the file size. The .GIF file is ideal for line art and color graphics because it is excellent at compressing and displaying flat color areas. It uses a simple compression algorithm. Because of the color depth limitation, however, the .GIF format is limiting and should not be used for photographs or complex graphics that have gradation in colour. GIF Transparency: With GIF files we can choose one color in an image to appear as transparent in the browser The background color or pattern will show through the areas that we marks as transparent. Using transparent areas allows us to create graphics that appear to have an irregular shape instead of a rectangle. GIF Animation The .GIF format allows a designer to store multiple images and timing information about the images in a single file. This allows the creation of animations consisting of multiple static images that rotate, creating the illusion of motion. When creating a GIF animation, a designer can adjust the amount of time between frames and the number of times that the animation plays. GIF animation does not require browser plug-ins and does not have large download times. Some of the tools through which we can create GIF animation are: ULead GIF Animator, and Microsoft Liquid Motion. Disadvantages of animated GIF images: They only support 256 color palette. They can only animate in browsers that support animated gifs. They cannot be edited once they are encoded as an animated gif. If we edit animated GIF, we will lose the animation sequence when it is saved. JPG - Joint Photographic Experts Group (JPG or JPEG) image file format. JPGs support millions of colors since they are 24-bit, so they are ideal for photographs or continuous tone images. JPGs use a lossy file compression technique that discards some colors, so there may be a loss of quality from the original image. The compression algorithm is more complex for JPG files. When saving an image in .JPG format, a slider lets the designer choose the quality of the image. The higher the compression, the smaller the size of the image file and the quicker the download time, but the lower the image quality. Images can be converted into JPG format using tools such as Adobe PhotoShop. This format is not suitable for images with text and large blocks of solid color, and simple shapes with crisp edges. This is because when the image is compressed the text, color or lines may blur resulting in image that is not as sharp. Prof. Mukesh N. Tekwani Page 1 of 4
  • 2. HTML Graphics PNG - Portable Network Graphics format This was specifically designed for use on the Web. It has better compression rates than GIF images and therefore images are smaller in size. It uses a compression technique that retains all of the color information, so it is not as efficient at compressing image files as .JPG. PNG supports 8-bit indexed-color, 16-bit grayscale, and 24-bit true color images. PNG supports transparency and interlacing but not animation. Certain browsers do not support PNG format. 2 What is interlacing and progressive displays? We can save images in an interlaced or progressive format. A low resolution image is shown first, followed by one or more passes that refine the image until the full-resolution image is displayed. This is known as interlacing. Both interlacing and progressive display formats gradually display an image in a pre-specified number of passes as the data arrives in the browser. The only advantage to saving images in these formats is that the user will see a blurred image that gradually clears, giving them something to look at as it downloads. The biggest disadvantage to saving an image in this format is browser support. Older browsers may not display the image properly. 3 Which image format is the best for the Web? GIFs should be used for simple colored graphics and line art. The .GIF format can also be used for animation and transparency. The .JPG format is best for 24-bit full-color photographic images and complex graphics. The .PNG format can be used instead of GIFs, but all browsers do not support this format. PNG does not replace JPGs since PNGs do not compress 24-bit images as well as .JPG. 4 Computer Color Basics: Color depth is the amount of data used to create color on a display. Dithering occurs when a browser comes across a color it does not support. The browser then attempts to mix its own colors to create a similar color. Banding refers to the effort to match the closest colors from the GIFs palette to the original colors in a photo. 5 Discuss the IMG element The <IMG> markup element is used to place graphics or images on a Web page. The <IMG> element is an empty element, so it does not require a closing tag. The <IMG> element only needs the SRC attribute to display an image in a browser. There are other attributes that can be used to select how and where the image appears in the browser. Attribute Use ALIGN Specifies the position of the image in relation to the surrounding text. Displays an alternate string of text instead of an image if the user has a text-only ALT browser or has graphics turned off. The ALT value is displayed as a pop-up window when a mouse points to the image. Determines whether a border appears on the image. State the border value in BORDER pixels. We can use this attribute to turn off the hypertext border if the image is a link. HEIGHT Specifies the height of the image in pixels. Specifies the amount of horizontal white space on the left and right sides of the HSPACE image in pixels. The only required attribute, SRC specifies the URL of the graphic file you want to SRC display. As with any URL, the path must be relative to the HTML file. Image mukeshtekwani@hotmail.com Page 2 of 4
  • 3. HTML Graphics VSPACE WIDTH filenames are case-sensitive! Specifies the amount of vertical white space on the top and bottom sides of the image in pixels. Specifies the width of the image in pixels. ALIGN, BORDER, VSPACE, and HSPACE have been deprecated in HTML 4.0 in favor of CSS. The table below shows the replacement attributes: Deprecated Attribute ALIGN BORDER HEIGHT HSPACE and VSPACE 6 Equivalent CSS Property FLOAT allows you to flow text around an image or other object. Example: IMG {FLOAT: LEFT} BORDER lets you set a border on an image, or remove the border from a linked image. Specifies the height of the image in pixels. The PADDING or MARGIN properties set white space around an image. You can control individual sides of the image, or apply white space around the entire image. Write a note on background images. The BACKGROUND attribute is used to tile images across the background of a Web page. Any image can be used as a background image, but design principles need to be kept in mind when using images in the background. Complex backgrounds can confuse and distract the user. Dark or complex backgrounds should be avoided if a site contains a lot of text. Most text is difficult to read against a background image unless the image is light enough to provide good contrast for the text. Instead of using a dark, busy image to tile a page background, instead choose a light, simple image. CSS allows more control over background image tiling that standard HTML. To apply a background image with CSS, use the <BODY> element as the selector with the BACKGROUND property (BODY {BACKGROUND: URL (texture4.jpg)}). Note the URL syntax in the rule. The path and filename are contained within parentheses. The default for CSS background graphics is the same as using the BACKGROUND attribute. The image tiles across the page. The CSS BACKGROUND-REPEAT property allows a designer to create a single column or row of an image rather than tiling the image completely across the page. The BACKGROUNDPOSITION property can also be used to change the position of the background graphic. 7 What are transparent spacer GIFs? We can set one color of a .GIF or .PNG to be transparent. A single pixel graphic of one color set to be transparent can solve spacing problems that cannot be solved with standard HTML code. The WIDTH and HEIGHT attributes can be used to change the transparent spacer GIF to any size desired. The transparent spacer GIF is sometimes the only way to achieve a desired result. 8 How can we add white space around an image? The designer should add white space around images to reduce clutter and improve readability. To increase the white space around an image, the HSPACE and VSPACE attributes can be added Prof. Mukesh N. Tekwani Page 3 of 4
  • 4. HTML Graphics to the <IMG> element by specifying the pixel amount. VSPACE affects both the top and bottom sides while HSPACE affects the left and right sides. White space can also be added to a graphic by using graphic editing software. CSS offers more control over image white space through the application of the margin properties to individual sides of an image. 9 What is lossless file compression? Lossless file compression is a technique (algorithm) that allows the exact original data to be constructed from the compressed data. This technique is used where it is important that the original and decomposed data must be identical. This technique is used in many applications e.g., in compressing application programs, in the ZIP file utility, in compressing program files and text documents. GIF and PNG image file formats use the lossless compression technique. Huffman coding algorithm is used for lossless compression. Lossless compression gives low compression ratios. 10 Explain Lossy Image Compression Lossy image compression is a technique (algorithm) in which some data is lost when the image is decompressed. Lossy compression is used for multimedia files such as still images, audio and video, streaming media and internet telephony. The JPEG file format has lossy compression. Lossy compression gives a very high compression ratio. Lossy compression technique is necessary when large multimedia files have to be transferred over a network; reducing the file size is important in this case. A picture is converted to a digital file by considering it to be an array of dots, and specifying the color and brightness of each dot. If the picture contains an area of the same color, it can be compressed without loss by saying "200 red dots" instead of "red dot, red dot, ... red dot" 200 times. Lossy compression works because in many cases files contain more information than is needed for a particular purpose. For example, a picture may have more detail than the eye can distinguish when reproduced. Page 4 of 4 mukeshtekwani@hotmail.com