Articles Comments

Marco Luthe Online! » WordPress Stuff » Getting All Confused: Open And Close Tags In (X)HTML

Getting All Confused: Open And Close Tags In (X)HTML

Today, I wondered why WP-EMail & WP-Polls wouldn’t work any longer:

  • WP-EMail would not open a popup window but a normal one,
  • WP-Polls would not do anything when voting (i.e. not show any results).

Since I had installed several plugins lately, I wondered what to do: enable and disable each plugin to see if there is any interference?

That’s always a pain in the a**.

Then I remembered that I had put a link to my own javascripts in the header. When I looked at the javascript console, I found the error message “sack is not defined”.

That didn’t happen before.

So I looked at the header again, and I noticed that I got all confused with “open tags” and “close tags”.

Here is what I used:

<script type=’text/javascript’ src=’link to myscripts.js/>

WRONG!

Unlike <link> or <br>, you actually have to close the tag:

<script type=’text/javascript’ src=’link to myscripts.js></script>

Now, everything works fine again… silly me. :-)

Note:
Comment Live Preview
doesn’t work any longer, but that has nothing to do with my mistake mentioned above (tried to re-install it, but no luck).

Filed under: WordPress Stuff · Tags: , , , ,

blog comments powered by Disqus