/    Sign up×
Community /Pin to ProfileBookmark

Forms: validate error

(posted at the wrong forum)
(moved from graphics forum)

[QUOTE]

I was not sure where to place this topic, so I placed it here in “HTML”
I finally managed to get a working math program in Javascripting and I’m really excited about it, however, when I went to validate it, I was returned with a number of errors. I fixed most of them, but one has me stumped:

[QUOTE]

Line 88, column 11: there is no attribute “NAME”
<form NAME=”wall_calculator” method=”post” ACTION=”wallcalc.html”>

[/QUOTE]

[URL=http://www.epourania.com/wallcalc/wallcalc.html]http://www.epourania.com/wallcalc/wallcalc.html[/URL]

Here is the site and I used the 3WC validator.
I have a difficult time finding the specs for forms on the 3WC site, I found it once, but I can’t seem to find it now.
I don’t understand what it means “…no attribute “NAME”…” well I have the NAME right there.
It also went on to explain something about CSS. I don’t know what that is, or rather I know it’s Cascading Style Sheets, but I haven’t studied that one yet.
“<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>”
is my first line. Do I need to change this somehow to CSS?

[/QUOTE]

(continued here…) [URL=http://www.webdeveloper.com/forum/showthread.php?s=&postid=235229#post235229]http://www.webdeveloper.com/forum/showthread.php?s=&postid=235229#post235229[/URL]

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 25.2004 — You are using an invalid [URL=http://www.w3.org/QA/2002/04/valid-dtd-list.html]DTD[/URL]

Use:
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;

[URL=http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.3]The form element[/URL]
Copy linkTweet thisAlerts:
@anothenauthorAug 25.2004 — YES!!!

That did it. Thanks Fang.

Can I use that on all my pages, or is there a simple way I can determine which DTD's I should use?

latest update: [URL=http://www.epourania.com/wallcalc/wallcalc.html]http://www.epourania.com/wallcalc/wallcalc.html[/URL]

note:

Oh, I just realized you gave me a link to the Form Specs, thanks, I needed that.
Copy linkTweet thisAlerts:
@CharlesAug 25.2004 — You should be using HTML 4.01 Strict. 4.01 Transitional was for a special use that no longer applies. It does, however, allow a lot of errors to pass the validator - which is why some web authors like it.

[font=monospace]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">[/font]
Copy linkTweet thisAlerts:
@anothenauthorAug 25.2004 — You're right, it is strict. It beat me down with 22 errors. I'll change it at some point, but for now I'll leave it as is.
×

Success!

Help @anothen 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.21,
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,
)...