Forum Moderators: open
When I test my site using the validation service at W3.org, it says...
All of my image tags must contain an alt attribute, and that all form tags must contain an action.
The problem I'm facing, is that I don't want some images to contain alt attributes, and some form tags to have an action.
I was able to solve the validation problem by giving these tags empty values, such as:
alt=""
&
action=""
However, I don't like doing it this way. Is there another way around this?
Thanks.
Robin_reala >
Well, I have some textarea fields that need to be enclosed by the <form></form> tags.
I also have some javascript functions that are initialized using onSubmit, such as:
<form onSubmit="return function()">
<input type="submit" value="Submit">
</form>
So I have to specify empty action values (unless there's some other solution).