Jump to content

Validate again?


eduard

Recommended Posts

Do you understand this?"required attribute "ACTION" not specified"
Aproximately! I know there´s action needed! But where? How?
Link to comment
Share on other sites

Aproximately! I know there´s action needed! But where? How?
The validator shows where by giving the line number and even showing you the <form> tag that was on that line. Do you know what an attribute is? Knowing what an attribute is would allow you to know how to put it where it belongs.
Link to comment
Share on other sites

Aproximately! I know there´s action needed! But where? How?
What do you think the word "action" means in the phrase
required attribute "ACTION" not specified
?A: Something that belongs to an attributeB: The name of an attributeC: Something that needs to be done somewhere in the document (with the term for this something being "attribute")(I'm not patronizing you... I'm trying to figure out how your mind operates... don't try to find the "right" answer... be honest)
Link to comment
Share on other sites

Guest LH91325
So, what about this error message: line 17, Column 35: required attribute "ACTION" not specified
<form method="post" name="nav">

You can't figure out that the validator is telling you that your FORM is missing an ACTION? Did it ever occur to you to look up the HTML FORM tag and read the information? Here's an explanation of FORM right on W3Schools website: FORM <-- read it This is their example of how to use a FORM tag:
<form action="form_action.asp" method="get">  First name: <input type="text" name="fname" /><br />  Last name: <input type="text" name="lname" /><br />  <input type="submit" value="Submit" /></form>

Do you see any place in the example where the word "action" is used? Do you see any place in your code where the word "action" is used? Do you see in the validator error message that it says "required ACTION is missing" ??? If you can't figure that out without help then maybe you should go into a different line of work.

Edited by LH91325
Link to comment
Share on other sites

... and more importantly, do you understand what the generic pattern "attribute X not specified for element Y" means? Tell me! Let's try to correct this before your next problem appears.
No, no idea!
Link to comment
Share on other sites

This is going to fast for me! I still have 12 errors in my index.html. I´m continu validating and try to solve the problems myself! If I don´t succeed I´ll post the error (so. it can be that you receive it sgsin, sorry!) I´ll hope in this way we can fix all the errors!

Link to comment
Share on other sites

This is going to fast for me! I still have 12 errors in my index.html. I´m continu validating and try to solve the problems myself! If I don´t succeed I´ll post the error (so. it can be that you receive it sgsin, sorry!) I´ll hope in this way we can fix all the errors!
Excellent.Here's a crash course on HTML terminology... hopefully the error messages will make more sense if you can at least understand that:- Everything between a "<" and a ">" is called a "tag".- The word "element" means anything between a pair of an "opening" and "closing" tags. An "opening" tag looks like
<something>

where "something" is the name of the element. A "closing" tag looks like

</something>

(again, "something" is the name of the element)- The word "attribute" means anything within an opening tag that looks like

a="b"

where "a" is the name of the attribute, and "b" is the value of the attribute. For example, in

<something xx="yy">

xx is the name of an attribute of the "something" element. The value of this attribute is yy.Keep in mind this terminology is only applicable to HTML, XHTML and XML based languages. It does not apply to PHP, SQL or anything else.I believe someone told you this before (I mean last year, not recently...). Maybe not as exhaustively, but still.

Link to comment
Share on other sites

Excellent. Here's a crash course on HTML terminology... hopefully the error messages will make more sense if you can at least understand that: - Everything between a "<" and a ">" is called a "tag".- The word "element" means anything between a pair of an "opening" and "closing" tags. An "opening" tag looks like
<something>

where "something" is the name of the element. A "closing" tag looks like

</something>

(again, "something" is the name of the element)- The word "attribute" means anything within an opening tag that looks like

a="b"

where "a" is the name of the attribute, and "b" is the value of the attribute. For example, in

<something xx="yy">

xx is the name of an attribute of the "something" element. The value of this attribute is yy. Keep in mind this terminology is only applicable to HTML, XHTML and XML based languages. It does not apply to PHP, SQL or anything else. I believe someone told you this before (I mean last year, not recently...). Maybe not as exhaustively, but still.

Thanks! That´s what I need: html (for dummies?)
Link to comment
Share on other sites

the issue that I find so frustrating about the OP being stuck on an error with a form having no action, is the ridiculous amount of time we've spent with him in the PHP forum going over his code that had FORMS WITH AN ACTION ATTRIBUTE IN THEM. wtf

Edited by thescientist
  • Like 1
Link to comment
Share on other sites

the issue that I find so frustrating about the OP being stuck on an error with a form having no action, is the ridiculous amount of time we've spent with him in the PHP forum going over his code that had FORMS WITH AN ACTION ATTRIBUTE IN THEM. wtf
Now that it got clear he never had a clue what he's doing, it makes a little more sense.Eduard, when we (and by that I mean everyone who has ever replied to you) say that you should take it down a notch, that's what we have in mind: Don't go forward with new stuff before you've understood how the one you're on is working. The basics I just covered are part of the HTML tutorial. I simply compressed the 4th and 5th page of the tutorial into 3 paragraphs. If you read the tutorials in full, without skipping stuff, you'd know that.
Link to comment
Share on other sites

So, what about this error message: ine 17, Column 35: required attribute "ACTION" not specified <form method="post" name="nav"> The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. Persons write to me send me the code, don´t have to send the code, again your code, send me the URL, validate your file, etc..Can you imagine that´s very confusing for me? And very ´painful´ to receive all those negative replies for a person who is TRYING to learn computing lenguages whether or not he´s doing this in the right way! And because of the amount of posts saying he´s not MOTIVATED? But I apreciate this reply very much, although I´m not a perfect student there are also persons who keep continuing helping me! I´ll never forget that! (e. g. your explanation of a database - cars)!
But where? In the <head>? And is it "text/html"?
Link to comment
Share on other sites

But where? In the <head>? And is it "text/html"?
Read the beginning of the error message again, especially the part I've boldened:
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
In this context, "instance" is used as a synonym for "example". So "for example...". Everything following that is just an example. It has nothing to do with your code. The validator is trying to help you understand the reason this message would ever appear, rather than why is it happening in your code. The validator is not intelligent enough to tell you how to fix your error, so instead it tells you why it says what it says, so you can check for yourself if what is says is right, or if something else is causing the message to appear.
Link to comment
Share on other sites

where what? You still don't know?http://w3schools.inv...showtopic=43179 that's your own thread where you use forms. Granted maybe you don't really understand anything and you just say you do, but at least you had it right there. and if you really are that clueless...

<form ACTION="form_submit.php" method="get">...</form>

oh my gosh, an action attribute! right on the line it told me I needed to put an action attribute! Right where all the tutorials tell me! Just like I've done before in my own code! Right where people have been telling me to put one for the past three pages.... What are the odds...

Edited by thescientist
Link to comment
Share on other sites

Calm down thescientist, sounds like you are getting stressed out like, like.... well like eduardlid. You know what! I thought (silly me), the form action problem (post#30) was finally fixed according to post #57, and he was ready to tackle the next 12 errors, which calculated to a hot topic total at the end of 354 posts, well that was killed when form action was brought up again in post#62. You know in another topic i said you could never run out of numbers for an auto incremented field type, i think eduardlid. will be putting that statement to the test.

  • Like 3
Link to comment
Share on other sites

Thanks! That´s what I need: html (for dummies?)
But all this is already in the W3Schools HTML tutorial, had you decided to read it.
Link to comment
Share on other sites

This error? : an attribute specification must start with a name or name token <name="lang" onChange="document.location.href=document.nav.lang.options…I don´t understand it! = is wrong, but then?

Link to comment
Share on other sites

This error? : an attribute specification must start with a name or name token <name="lang" onChange="document.location.href=document.nav.lang.options…I don´t understand it! = is wrong, but then?
Give a URL to your page.(i.e. upload your code to a host, open it in a browser, copy&paste the thing in the address bar - the term for which is URL)
Link to comment
Share on other sites

The parser considers "name" to be the element name, and the = does not have an attribute name. As I see it: You don't have an element there. You can't have an attribute without an element.

Link to comment
Share on other sites

Guest LH91325

This is ridiculous. Eduard is either a troll and playing stupid as a game, or he honestly does not have the ability to learn HTML. Either way he's soaked up enough of my own time. I'll not waste any further time explaining technical stuff to him. He doesn't even understand answers when you hand it to him on a plate, as I earlier did with explaining his FORM problem missing an action.

Edited by LH91325
Link to comment
Share on other sites

This is ridiculous. Eduard is either a troll and playing stupid as a game, or he honestly does not have the ability to learn HTML. Either way he's soaked up enough of my own time. I'll not waste any further time explaining technical stuff to him. He doesn't even understand answers when you hand it to him on a plate, as I earlier did with explaining his FORM problem missing an action.
I never play stupid as a game!If I didn´t understand html, I hadn´t fixed 22 errors in my index.html so far! Edited by eduardlid
Link to comment
Share on other sites

6! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title>Eduard Lid</title> <link rel="stylesheet" type="text/css" href=ex1.css></head><body><div id="lang"> <p>Chose your lenguage:</p> Seleccione su idioma: <form method="post" name="nav" action="insert.php"> <name="lang" onChange="document.location.href=document.nav.lang.options[document.nav.lang.selectedIndex].value"> <option value="portfolio.html" selected >English </option> <option value="portfolio.html">Español </option> <option value="portfolio.html">German </option> <option value="portfolio.html">Dutch </option> <option value="portfolio.html">French </option> </form> </div><div id="floater"> <ul id="flags"> <li>eng<a href="english.html"><span id="amer"></span></a></li> <li>es<a href="spanish.html"><span id="spanish"></span></a></li> <li>d<span id="germ"></span></li> <li>nl<span id="dutc"></span></li> <li>f<span id="fren"></span></li> </ul></div><!--end #floater --><div id="vertical"></div><div id="main"> <p><img id="eduard" src="eduard.JPG" alt="img Eduard Lid"></p> <iframe><src="http://www.youtube.com/embed/h2AWKgU0cN4" frameborder="0" allowfullscreen></iframe> <p><img id="lake" src="lake.jpg" alt="img lake"></p> <div id="content"> <p>Web designer<span class="right">Diseñador de sitios web</span></p> <p>Translator<span class="right">Traductor</span></p> <ul id="links"> <li><a href="english.html">more</a></li> <li><a href="spanish.html">más</a></li> </ul> </div></div><!--end #main --><h1>Eduard Lid</h1><p id="copyright">Copyright © 2012</p></body></HTML>(I´m going to have a break!)

Link to comment
Share on other sites

Once you're ready to go at it again...Look at the part

<form method="post" name="nav" action="insert.php"><name="lang" onChange="document.location.href=document.nav.lang.options[document.nav.lang.selectedIndex].value"><option value="portfolio.html" selected >English </option><option value="portfolio.html">Español </option><option value="portfolio.html">German </option><option value="portfolio.html">Dutch </option><option value="portfolio.html">French </option></form>

And have a look at this example from the HTML tutorial. Tell me what's the key difference you notice. Hint: It's not the DOCTYPE, it's not the head either.

Link to comment
Share on other sites

Something seems wrong with your <iframe> element. Check the HTML tutorial again and compare your code with the one that is on W3Schools.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...