xHTML Valid Entrecard Code

Posted by Mikko at 2 March 2008

Category: Internet

Last night before I slept, I tried to revalidate the code of this unDirty theme and noticed that it is not valid anymore. Here’s a screencap of the report overview:

3 errors found

Then, I tried to look at the errors below. It says that the errors are on the Entrecard widget code. I tried fixing it up for a couple of minutes until I actually found the real problem.

error.jpg

Entrecard supplied the non xHTML 1.0 Transitional code:

<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>

The problem is on the &user_id part since the ampersand is also used in xHTML as an ascii-character generator such as for a breakline. To fix it, just change the ampersand to & yielding this result:

<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>

Hope it helps!

======================================

Related posts:

  1. June 2009 Nursing Licensure Exam Results
  2. McDo Delivery in Cebu, Philippines
  3. McDo Delivery in Davao, Philippines
  4. McDo Delivery in Metro Manila, Philippines
  5. De La Salle University (DLSU) Reference Number 2010

5 Comments

  1. richard says

    yo! may bago akong bahay.. hehhe :-) pakichange ng link..

    Reply
  2. richard says

    tol, pakipalitan ng brycebugz ang pulsecircle.. salamat :-)

    Reply
  3. Blake says

    I do not see the difference between the two tags. Can someone explain the difference?

    Reply
  4. Cheri Ahne says

    I use Mass-Follow.com to submit my articles to like 400 places

    Reply
  5. Porch says

    Good post.Perfect!

    Reply

Leave a Reply

Leave a Reply
  • (required)
  • (required) (will not be published)