/    Sign up×
Community /Pin to ProfileBookmark

name tag in strict doc type does not validate?

Hi,

How come when im trying to validate my document it telling me that the form is not aloud a name. Am i doing something wrong or is it not aloud in strict, also i have an onClick on the text input is that not aloud either?

[code=html]<form action='”.LINK_LOGIN.”?val=1′ method=’post’ name=’MINI_Login’>

And

<input name=’Username’ type=’text’ maxlength=’50’ class=’logmini_usernamebox’ value=’Username’ onClick=’JavaScript: clearText()’ />[/code]

Any ideas?

Thanks
Adam

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 03.2005 — Sounds like you are using xhtml1.0 strict, use transitional where [I]name[/I] is allowed.

onClick should be lowercase as should all attributes in xhtml
Copy linkTweet thisAlerts:
@the_treeApr 03.2005 — Keep with the strict doctype, just replace [i]name[/i] with [i]id[/i].
Copy linkTweet thisAlerts:
@CharlesApr 03.2005 — It could also be that you are using HTML 4.0. In either case your best bet is to switch to HTML 4.01 Strict.
Copy linkTweet thisAlerts:
@k0r54authorApr 03.2005 — Hi,

Ok i am using xhtml strict, and i put the onclick to lower case :eek: stupid mistake i know.

But i have named the form because i am using javascript. So i will use id and fine a different way around the javascript code

Thanks

Adam
Copy linkTweet thisAlerts:
@ray326Apr 03.2005 — document.getElementById("MINI_Login")
×

Success!

Help @k0r54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...