Skip to main content

Image map or Map and Area tags

Anchor TAG

Image Map or map Tag :

An image map is an image with clickable areas.

Sarting Tag : <map> Ending tag : </map>

Attributes :

    It has different attributes like
  1. usemap
  2. name

Area Tag :

It contains Area tag

Sarting Tag : <area> Ending tag : </area>

Attributes :

    It has different attributes like
  1. shape
  2. coords
  3. href
For this first take a notepad and copy code then save it with .html extension.Thats it your Program will be exected.if You want to check its effect within this website plese click on EXECUTE button.

1. Usemap attribute : Usemap attribute and creates a relationship between the image and the map.Its values are starting with #.

for example <img usemap="#msrwebtech"/>

2. Name attribute : Name attribute is used to link the image with map tag.We use this with in map tag.for example

<map name="msrwebtech">

3. Shape attribute : Shape attribute is used to define shape like rectangle,circle and polygon within area tag.for example

<area Shape="circle"> ; <area Shape="rect"> ;<area Shape="polygon">

4. Coords attribute : Coords attribute is used to define coordinates of an image within area tag.for example

<area Shape="circle" Coords="x,y,radius"> Where as x , y are coordinates of image at particualr point on image
<area Shape="rect" Coords="x1,y1,x2,y2" > where x1,y1 are coordinates at left top of the image and x2,y2 are coordinates at right bottom of the image
<area Shape="polygon" Coords="x1,y1,x2,y2.......xn,yn" >

4. href attribute : Coords attribute is used to link the web page when you click on particualr shape on the image.

CODE <html> <head> <title> Image Map TAG </title> <style type="text/css"> </style> </head> <body > <img alt="Msr WebTech Youtube channel image" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMsS6i5NEDY3dUpdwgctlHRNJr_Sw3-QK7p6VwA17ThLVEtsObNTtnQZRLB_0j9axboN0xYilHa3zARoDS5BVEN6S7IAvb5yPpOPgSoEPX0jxVhLZIsyc36QKllEeU36r91SrMFT3RHQ/s0/image+Map.jpg" usemap="#msrwebtech"> <map name="msrwebtech"> <area shape="rect" coords="385,21,480,108" alt="Msr WebTech Youtube channel" href="https://www.youtube.com/channel/UCurLHTvkk9-mZ2YjqsLHtKg"> <area target="new" shape="circle" coords="120,160,82" alt="Msr WebTech Marquee Video" href="https://www.youtube.com/watch?v=5_aa8Hq-kQU&t=10s"> <area shape="poly" coords="224,179,305,108,336,88,365,155,443,180,365,108,337,265,305,203" alt="Msr WebTech Anchor tag Video" target="new" href="https://www.youtube.com/watch?v=8rT88D1FKwY"> </map> </body> </html>
OutPut (Click on above execute Button)

Comments

Popular posts from this blog

Computer awareness questions asked in RRB PO Part II

Computer awareness questions asked in RRB PO Part II Part -I Part - II Learn them from below Q 1) which of the following is not a is not an email service ? A. Bing B. yandex C. gmail D.Yahoo View Answer & Explanation Q 2) Which of the following is incorrect declaration of file name in Windows 7 ? A.mydoc:file.doc B.Mydoc hai.doc C.Mydoc_hai.doc D. Mydoc.doc View Answer & Explanation Q 3)Which of the following is correct mail id ? A. @mymail.com B. msrgmail.com C. msr@.com D. msr@gmail.com View Answer & Explanation Q 4) Which of the following is a software that that is available free of cost but do not provide any freedom of modifying, sharing and studying the program ? A.Free ware B.share ware C. Open source D.Adware View Answer & Explanation ...

Fieldset and Pre Tags in HTML with Live execution

Fieldset Tag in HTML Fieldset & Pre Tags in HTML : 1. Fieldset Tag : is used for grouping related form elements in a box.It is used to give user a clear view about Content. Starting tag : Ending tag : 2. Legend Tag : Legend tag is used to give title for Fieldset. Starting tag : Ending tag : 3. Pre Tag : Pre tag is used to set alignment of your web page as coded line wise . Starting tag : Ending tag : For this first take a notepad and copy code then save it with .html extension.Thats it your Program will be exected.if You want to check its effect within this website plese click on EXECUTE button. CODE Fieldset ,Pre TAGs Login Page User Name : Password : OutPut (...

Part 4 : Top 500 Computer Awareness Previously Asked Questions

Top 500 Computer Awareness questions Take Quiz from below Q 1) In Network layer , data transferred interns of _______________ ? frames packets bits segments Q 2) What is the shortcut for creating new slide from already existing slide ? contrl + N contrl + M contrl + V contrl + R Q 3) What is the extension for MS-ACCESS ? ACCDB XLS DOCX ACCESS Q 4) Which of the following is volatile memory ? HARD DISK ROM RAM COMPACT DISK Q 5) What is used to identify Particular page on web ? ? HYPERLINK URI URL SERVER ADDRESS Q 6) Which one of the fo...