Login
Sign In or Register
Avatar
Not Registered Yet?

Join Now! It's FREE. Get full access and benefit from this site

Reset My password - Remind Me My username

Username
Password
Remember Me

How To Make Entrecard XHTML Valid

Tuesday, 02 June 2009 13:09 PDFPrintE-mail


entrecard.png

If you try to place the original entrecard code on your blog or website, you will get an invalid markup validation error.

Example (Original Entrecard code):
<script src="http://entrecard.s3.amazonaws.com/widget.js?user_id=5683&type=standard_200" type="text/javascript" id="ecard_widget"></script>

If you run a markup validation check at http://validator.w3.org/ - you will get 3 errors:

  1. General entity "type" not defined and no default entity
  2. Reference to entity "type" for which no system identifier could be generated
  3. XML Parsing Error: EntityRef: expecting ';'

To make the code XHTML Valid, you will have to encode the & character.

To encode the & character, simply replace it with "&"

Sample:
<script src="http://entrecard.s3.amazonaws.com/widget.js?user_id=5683&type=standard_200" type="text/javascript" id="ecard_widget"></script>

Now you can re-run the validation check. Your Entrecard is now XHTML Valid!


Read Full Article

Related Articles

Related news items:
Newer news items:
Older news items:

Sponsers

Follow us on!

  • Facebook Page: 55916823107
  • Twitter: edesignerz

Links