When I do validate the page in W3 validation, I got few errors with below code,
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=xxxxxxxxx&w=168&h=44&style=white&variant=text&loc=en_US" />
Errors are as follows,
- cannot generate system identifier for general entity "w"
- reference to entity "w" for which no system identifier could be generated
- general entity "h" not defined and no default entity
- reference to entity "h" for which no system identifier could be generated
- general entity "style" not defined and no default entity
- reference to entity "style" for which no system identifier could be generated
- general entity "variant" not defined and no default entity
- reference to entity "variant" for which no system identifier could be generated
- general entity "loc" not defined and no default entity
- reference to entity "loc" for which no system identifier could be generated
This is the only errors comes from the URL; is there way to pass W3 validation for this URL.
You need to escape the ampersands ( &
) to their HTML entity counterpart &
New code:
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=xxxxxxxxx&w=168&h=44&style=white&variant=text&loc=en_US" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.