an attribute value must be a literal unless it contains only
ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Reply Quote
I have a problem when trying to validate my html code with the W3C validator which gives me the following message:

This page is not Valid HTML 4.01 Transitional!

Error Line 393 column 43: an attribute value must be a literal unless it contains only name characters.

...r> <a href=javascript:popcontact('disclaimer.htm')>

I have tried various ways of rewriting the code to avoid the problem but nothing seems to work. I would very much appreciate any help.
Back to top
jalarie
Status: Interested
Joined: 16 Sep 2005
Posts: 11
Reply Quote
Try adding double-quote marks and a semicolon like this:

:: Code ::

  <a href="javascript:popcontact('disclaimer.htm');">

Back to top
an attribute value must be a literal unless it contains only
ken_gal
Status: New User - Welcome
Joined: 13 Apr 2006
Posts: 4
Location: UK
Reply Quote
Many thanks for your help. The program now works perfectly.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours