Professional Documents
Culture Documents
Untitled
Untitled
2. Images as links
• The code is
<a href=”url to go to when image is clicked”>
<img src=”image address(online/offline)” alt=”alt.
Text(when image cannot be displayed)”
style=”width:__ ; height:__ ; border:__”>
</a>
• Syntax:
<link target="_blank|_self|_parent|_top|
framename">
• Attribute Values:
• _blank: It opens the link in a new window.
• _self: It is the default value. It opens the linked
document in the same frame.
• _parent: It opens the linked document in the parent
frameset.
• _top: It opens the linked document in the full body
of the window.
• framename: It opens the linked document in the
named frame.
4. How to Insert an Image in HTML
Syntax:
<img src="5.png" alt="image is not available"
width="120px" height="100px">
<img align=”left|right|middle|top|bottom”>