You are here: Computer Video TutorialWordpress TutorialFix An Attribute Value Specification
Due to regular updates on WP, if you look for Twenty Eleven theme modification or customization tutorial, first of all, first check this post. Thanks.

Fix An Attribute Value Specification

by Kimi on September 27, 2010

An attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

I have encountered this problem with W3C validator, which you may have too.

In my situation, the error came from putting html code <img alt="" />


It can happen with padding css code as well, the error message will be “an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified” (see image).

The error message.

I try as i can, to clean up and validate my blog’s code, this is why some small things like this i have to fix.

To fix it, add ” or ” for the width, height, or padding, depends on your source code. blog seo

My code was like this;
width=25 height=20

The fix was like this.
width="25" height="20"

Image:

The fix, " or '

After you correct the code, you can then “revalidate” your document again.

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

Know better? Feedbacks, or Questions? Shoot! :-)

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

Previous post:

Next post: