treehouse : what would you like to learn today?
Web Design Web Development iOS Development

How to draw shapes in HTML

  • Hi,

    I have noticed that in some pages people have put shapes around images to make them into a link. An example is:

    <area href="link" coords="Num,num,Num,num" shape="poly"/>


    But does anyone have a site that goes through this as I am not sure how it works. Also do any browsers read it differently such as IE?

    Thanks for your help
  • I believe what you are referring are called image maps.
  • "bor003" said:
    Hi,

    I have noticed that in some pages people have put shapes around images to make them into a link. An example is:

    <area href="link" coords="Num,num,Num,num" shape="poly"/>


    But does anyone have a site that goes through this as I am not sure how it works. Also do any browsers read it differently such as IE?

    Thanks for your help


    here you go: http://www.w3schools.com/tags/tag_map.asp

    in fact w3schools is great to learn from, and to remind you fo certain things if need be
  • Thanks for all of your answers! You even replied very quickly!