HTML - Iii
HTML - Iii
Prepared By-
Biswa Mohan Mohanty
DAV Public School, Pokhariput
Learning Objectives:-
The learner will be able to :
Appreciate the need of Src, Height, Width, Border, Align and alt attributes with
<img> tag.
Activity:- PAGE NO-73
The Thirsty Crow The Cap Seller and the Monkey Fox and the Grapes
• PNG has the feature of “lossless compression” that perfectly preserves the details
but may shrink, enlarge, or maintain the file size depending on what’s shown in the
PNG – Portable image.
Network Graphics • The main upside of PNG files is the ability to have transparency channels, giving it
great flexibility for layered images.
• This animated image file format was created way back in 1987 by CompuServe, the
first US-based ISP.
• It excels in portraying low-quality animated slideshows, which serve as extremely
GIF – Graphics portable video files. Yet, GIF is a fairly limited format in terms of color as it is only
Interchange Format able to display at most, 256 different colors at a time.
• Similar to PNG, GIF files also use lossless compression, resulting in varying file
sizes depending on the image content.
Required Attributes:-
The <img> tag has two required attributes:
src - Specifies the path to the image(Absolute path/Relative Path)
alt - Specifies an alternate text for the image
Align Top, bottom, middle, left, Specifies the alignment for the image
right
Border Pixels Specifies the width of the image border
HANDS ON
ANCHOR TAG
Anchor tag is used to create hyperlink in a webpage.
Syntax :- <a href=“URL”> Link Text</a>
The HREF (Hypertext Reference) attribute is used to specify the
URL(Web Address of the page) to be displayed when the user
clicks on the link text.
The text between <a> </a> is known as Link Text.
An unvisited link is underlined and blue.
A visited link is underlined and purple.
An active link is underlined and red.
Types of linking
1. Internal Linking : When one part of a webpage is linked to
another section on the same page.
To create Internal Linking we will create a Book mark using name
attribute in <A> tag.
<a name=“Value”>
<a href=“#Value”>Link Text</a>
2. Eternal Linking: When one page is linked to another webpage
on same or another website.
E-Mail Linking
1. In order to send email from the website designed by us we can
provide a special link using the <a red> tag called mailto.
<a href=mailto:[email protected]>contact Me</a<