HTML Image Map Tutorial

Sdílet
Vložit
  • čas přidán 12. 06. 2024
  • An overview of how to use an Image Map in HTML!
    Check out www.portfoliocourses.com to build a portfolio that will impress employers!
  • Jak na to + styl

Komentáře • 64

  • @uniquechannelname3402
    @uniquechannelname3402 Před rokem +4

    I can't put into words how much I appreciate this, I can't believe it worked. Thank you so much!

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You're very welcome, I'm so glad to hear that it helped you out! :-)

  • @mongevoltaireartlabasbas9305

    Great tutorial Mister. It's straightforward and it is not confusing.

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      Thank you for the kind feedback, I'm glad you enjoyed it! 😀

  • @CYANERION
    @CYANERION Před 2 lety +1

    Very simple and straightforward, Thank you for this very useful information

  • @wei48221
    @wei48221 Před rokem

    Awesome! It's exactly what I am looking for.

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      Excellent, I’m really glad to hear this was helpful! :-)

  • @arnoldotoho
    @arnoldotoho Před rokem

    Very concise. Thank you.

  • @user-ms6dj4ph3h
    @user-ms6dj4ph3h Před 2 měsíci

    Thank you for sharing this video. I was wondering if it's possible to create an image map on a video?

  • @sagianakar8605
    @sagianakar8605 Před rokem

    You are a king thank you so much

  • @soniferous
    @soniferous Před 2 měsíci

    How do image map perform when resizing the page or to different devices? Is it fixed or can it be dynamic?

  • @mehking2350
    @mehking2350 Před 2 lety

    Thanks a lot sir this was helpful 🙏

  • @jadeho-lam8675
    @jadeho-lam8675 Před 2 měsíci

    It's great tutorial ! How can I share the image with other people?

  • @sostheneshamamba3486
    @sostheneshamamba3486 Před 3 měsíci

    Wow👏👏👏 lesson well explained 🎉

  • @Only1pasco
    @Only1pasco Před měsícem

    Now I can do my project

  • @mvabhishek9296
    @mvabhishek9296 Před rokem

    well and superb explanation sir😇😇

  • @robmatt
    @robmatt Před 10 měsíci

    God sent you to us! Thank you very much for this tutorial. It helps me a lot.

    • @PortfolioCourses
      @PortfolioCourses  Před 10 měsíci

      You've very welcome, I'm so glad to hear the tutorial was helpful for you! :-)

  • @smlzin13
    @smlzin13 Před rokem

    Thanks for the video.
    What if I want to know where the user is clicking at an image?
    How can I get the X and Y of an click at an image?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You're welcome! :-) To the best of my knowledge, you would need to use JavaScript to do that, and the solution would look something like the answer to the question here: stackoverflow.com/questions/49807088/javascript-get-x-y-coordinates-of-click-in-image.

  • @drakelazerus
    @drakelazerus Před rokem

    Thank you for this! How would I set it up, to where my image links to another image and pulls up that image, rather than link to a website?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You're welcome! :-) In terms of "linking to an image" if you provide a path/URL to an image in the "href" attribute then you will get a link to an image. But that would load the image almost as if a website was being loaded, except only the image will be displayed. If you want to alter the content of the existing page to display an image, you would want to use JavaScript to do that.

  • @kingtube13
    @kingtube13 Před 2 lety +1

    thank you ...

  • @yoominchoi910
    @yoominchoi910 Před rokem

    Hi, thank you for the tutorial! Would there any way that I can put mouse hover event on each area?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You’re welcome Yoomin! :-) I don’t have a video covering that topic but you should be able to add a mouse hover effect/event using JavaScript, maybe this link will help: nestcode.co/en/blog/create-an-interactive-image-map-and-highlight-on-areas-when-mouseover

  • @smurfy123888
    @smurfy123888 Před rokem

    Thank you for the tutorial. I wanted to ask if i can assign a value when you click an image. Is it possible?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      You're welcome! :-) And with JavaScript, yes, this would be possible. We could setup a function to assign a value, and then set that function up to run when the image is clicked. I don't have a tutorial on this yet, but searching for "image click javascript event" might give you some tutorials perhaps.

    • @smurfy123888
      @smurfy123888 Před rokem

      @@PortfolioCourses thank you so much for your response. I will look into it.

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      @@smurfy123888 You're welcome! 🙂

  • @EverythingHP
    @EverythingHP Před rokem

    Can you do this to the background image instead of the image? And can you gave it link to another page in the website instead of a link?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +1

      It doesn't look like there is any easy way to make the background image of a website an image, people online seem to be suggesting solutions involving JavaScript:
      stackoverflow.com/questions/34644103/image-map-a-background-image
      stackoverflow.com/questions/7844399/responsive-image-map
      github.com/davidjbradshaw/image-map-resizer
      And yes, you can make the link go anywhere you like. :-) BTW cool channel!

    • @EverythingHP
      @EverythingHP Před rokem

      @@PortfolioCourses Thank you!!!

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You’re welcome! :-)

  • @ZanicolaSimon
    @ZanicolaSimon Před 19 dny

    Can someone please help me understand the coordinates

  • @fasihabdullah9960
    @fasihabdullah9960 Před rokem

    What if we have a webpage where the size of a picture is dynamic (in the sense that it depends on the size of the wrapper/container div)?
    How to make a more dynamic map where size of window/image will not affect clickable areas?

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +3

      Great question Fasih! 😀 We actually can't "natively" make an image map responsive. We would need to use something like JavaScript to dynamically alter the image map. There are things like jQuery plugins that will do this for us automatically though. This article discusses these points more: www.madcapsoftware.com/blog/how-to-implement-responsive-image-maps-in-your-html5-outputs/.

    • @fasihabdullah9960
      @fasihabdullah9960 Před rokem

      @@PortfolioCourses I see thanks.

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      You’re welcome! :-)

  • @Anonymous-zi5wr
    @Anonymous-zi5wr Před 4 měsíci

    How do you map a picture that has a thousands of points?

  • @mrkdeyyt4596
    @mrkdeyyt4596 Před 3 měsíci

    sir, what if my image was too big so I tired to use width and height but I think it affects the coords

    • @PortfolioCourses
      @PortfolioCourses  Před 3 měsíci

      Hmm, can you re-size it?

    • @mrkdeyyt4596
      @mrkdeyyt4596 Před 3 měsíci

      @@PortfolioCourses is there a way to resize it?

    • @PortfolioCourses
      @PortfolioCourses  Před 3 měsíci

      Programs like Paint and PhotoShop can do that, or even online programs like this one: imageresizer.com/

  • @JohnT-GNM
    @JohnT-GNM Před 11 měsíci

    what is the code editor being used here ?

    • @PortfolioCourses
      @PortfolioCourses  Před 11 měsíci

      Atom: en.wikipedia.org/wiki/Atom_(text_editor). It's no longer updated, and I switched to Visual Studio Code. But it was a good lightweight editor. :-)

  • @RohitKumar-jn6js
    @RohitKumar-jn6js Před rokem

    HOw to apply dynamic image mapping

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      I don't have a video on that topic yet Rohit. :-( You might be able to find something helpful online, for example: stackoverflow.com/questions/13321067/dynamically-resizing-image-maps-and-images.

  • @ravenor4495
    @ravenor4495 Před rokem

    My problem is i dont undestand the x and y how u will know where is x or y

    • @PortfolioCourses
      @PortfolioCourses  Před rokem +2

      Great question! 🙂 You can use a tool like this to help you get the x and y values: www.image-map.net/. There are many tools like this, for example: www.image-maps.com/. You could also use something like photoshop, when you go over the image with your cursor it should show the x and y values somewhere.

    • @arnoldotoho
      @arnoldotoho Před rokem

      Are you familiar with graphs? I believe the x and y coordinates use the x/y axes principles.

    • @IT-sq5rj
      @IT-sq5rj Před rokem

      Use paint. Down the bottom are the Coords

  • @funkyspin2506
    @funkyspin2506 Před rokem

    What about responsive image sir

    • @PortfolioCourses
      @PortfolioCourses  Před rokem

      Hmm, maybe one day I can make a video on responsive image maps! :-)

  • @cloudsystem3740
    @cloudsystem3740 Před rokem

    wow

  • @learnnottogiveaf8747
    @learnnottogiveaf8747 Před rokem

    God bless you