We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

exec HTML puzzle

Home Forums Puzzles exec HTML puzzle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75621
    huib
    Customer

    Hey,
    I’m totally stuck trying to add some basic HTML using the exec HTML puzzle.

    Maybe I’m trying to do something that’s not possible but I assume it would.
    I’m trying to add a simple DIV with an SVG image like this:

      <div id="cirkel-icon" class="cirkel-icon"><img src="images/cirkel_icon.svg" loading="lazy" alt="">
        <div class="svg-button-wrapper"></div>
      </div>

    This works fine in my index.html but when typing this directly inside the exec HTML puzzle (to be able to create more of them for example) I get a console error.
    Uncaught SyntaxError: Unexpected token ‘<‘

    Attachments:
    You must be logged in to view attached files.
    #75631

    Hi,

    This is not how it works. HTML code can’t be simply executed, it should be put as innerHTML property of some other element.

    For more info you might check out our tutorial series on HTML puzzles.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #75641
    huib
    Customer

    Hey thanks for the reply!
    Ah thanks for clearing that up, good to know it doesn’t work like that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.