John: fixed it.

Discussion in 'HTML' started by richard, Feb 15, 2009.

  1. richard

    richard Guest

    Now all you need to do is dress it up in the css the way you want.
    I ran it through the validator and it validates as 4.01 transitional.
    Took all of 10 minutes.


    <div class="foto"><img src="images/160NewsOrange_02.jpg"
    alt="something"></div>
    <div class="aform">

    <form name="contact_form" method="post" action="contact.php">
    NAME:<input type="text" name="your_name" size="10">
    <br>
    EMAIL: <input type="text" name="your_email"
    </form>
    </div>
    <div class="sendit">

    <input type="submit" name="Submit" value="Submit">
    </div>
    <div>SECURE&amp; CONFIDENTIAL<br>
    Youremail address will NEVER be rented, traded or sold.<br>
    WE GUARANTEE YOUR CONFIDENTIALITY. <br>
    We hate spam just as much as you do.
    </div>
     
    richard, Feb 15, 2009
    #1
    1. Advertising

  2. richard

    John Guest

    On Sun, 15 Feb 2009 14:18:38 -0500, richard <>
    wrote:

    >Now all you need to do is dress it up in the css the way you want.
    >I ran it through the validator and it validates as 4.01 transitional.
    >Took all of 10 minutes.
    >
    >
    ><div class="foto"><img src="images/160NewsOrange_02.jpg"
    >alt="something"></div>
    ><div class="aform">
    >
    ><form name="contact_form" method="post" action="contact.php">
    >NAME:<input type="text" name="your_name" size="10">
    ><br>
    >EMAIL: <input type="text" name="your_email"
    ></form>
    ></div>
    ><div class="sendit">
    >
    ><input type="submit" name="Submit" value="Submit">
    ></div>
    ><div>SECURE&amp; CONFIDENTIAL<br>
    >Youremail address will NEVER be rented, traded or sold.<br>
    >WE GUARANTEE YOUR CONFIDENTIALITY. <br>
    >We hate spam just as much as you do.
    ></div>



    This works pretty good, but the part with the Name & Email the lines
    down the side are cut off for some reason. Meaning - the graphic stops
    at the name & email and then starts again after that.
     
    John, Feb 15, 2009
    #2
    1. Advertising

  3. richard wrote:
    > Now all you need to do is dress it up in the css the way you want.
    > I ran it through the validator and it validates as 4.01 transitional.
    > Took all of 10 minutes.
    >
    >
    > <div class="foto"><img src="images/160NewsOrange_02.jpg"
    > alt="something"></div>
    > <div class="aform">
    >
    > <form name="contact_form" method="post" action="contact.php">
    > NAME:<input type="text" name="your_name" size="10">
    > <br>
    > EMAIL: <input type="text" name="your_email"
    > </form>
    > </div>
    > <div class="sendit">
    >
    > <input type="submit" name="Submit" value="Submit">
    > </div>
    > <div>SECURE&amp; CONFIDENTIAL<br>
    > Youremail address will NEVER be rented, traded or sold.<br>
    > WE GUARANTEE YOUR CONFIDENTIALITY. <br>
    > We hate spam just as much as you do.
    > </div>


    You do realize that your example is not remotely valid, right? For one,
    the submit button is not even within the form that it is supposed to
    submit.

    Anyway, what did you fix? Seems to be a continuation of a thread that
    you do not reference.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Feb 15, 2009
    #3
  4. richard

    richard Guest

    On Sun, 15 Feb 2009 17:04:58 -0500, "Jonathan N. Little"
    <> wrote:

    >richard wrote:
    >> Now all you need to do is dress it up in the css the way you want.
    >> I ran it through the validator and it validates as 4.01 transitional.
    >> Took all of 10 minutes.
    >>
    >>
    >> <div class="foto"><img src="images/160NewsOrange_02.jpg"
    >> alt="something"></div>
    >> <div class="aform">
    >>
    >> <form name="contact_form" method="post" action="contact.php">
    >> NAME:<input type="text" name="your_name" size="10">
    >> <br>
    >> EMAIL: <input type="text" name="your_email"
    >> </form>
    >> </div>
    >> <div class="sendit">
    >>
    >> <input type="submit" name="Submit" value="Submit">
    >> </div>
    >> <div>SECURE&amp; CONFIDENTIAL<br>
    >> Youremail address will NEVER be rented, traded or sold.<br>
    >> WE GUARANTEE YOUR CONFIDENTIALITY. <br>
    >> We hate spam just as much as you do.
    >> </div>

    >
    >You do realize that your example is not remotely valid, right? For one,
    >the submit button is not even within the form that it is supposed to
    >submit.
    >
    >Anyway, what did you fix? Seems to be a continuation of a thread that
    >you do not reference.


    I am showing that the crappy use of tables is totally unnecessary.
    Along with all the pointless and useless, nonexistant attributes.
    He can learn and finish it off correctly himself.
     
    richard, Feb 16, 2009
    #4
  5. richard

    rf Guest

    richard wrote:

    > Along with all the pointless and useless, nonexistant attributes.


    And which nonexistant attributes would these be? Oh yes, I see, the one
    where you claim that <font face is not a valid tag, even though it is
    acually a quite valid font tag with a quite valid face attribute, or did I
    miss one other of your errors? Deprecated may be but not invalid.

    And you might take your own advice and validate *your* code.

    <quote>
    <form...>
    </form>
    <input type="submit"...
    </quote>

    Doesn't look very valid to me :)
     
    rf, Feb 16, 2009
    #5
  6. richard

    richard Guest

    On Mon, 16 Feb 2009 01:15:47 GMT, "rf" <> wrote:

    >richard wrote:
    >
    >> Along with all the pointless and useless, nonexistant attributes.

    >
    >And which nonexistant attributes would these be? Oh yes, I see, the one
    >where you claim that <font face is not a valid tag, even though it is
    >acually a quite valid font tag with a quite valid face attribute, or did I
    >miss one other of your errors? Deprecated may be but not invalid.
    >
    >And you might take your own advice and validate *your* code.
    >
    ><quote>
    ><form...>
    ></form>
    ><input type="submit"...
    ></quote>
    >
    >Doesn't look very valid to me :)
    >



    I did validate it, jerk.
     
    richard, Feb 16, 2009
    #6
  7. richard

    rf Guest

    richard wrote:
    > On Mon, 16 Feb 2009 01:15:47 GMT, "rf" <> wrote:
    >
    >> richard wrote:
    >>
    >>> Along with all the pointless and useless, nonexistant attributes.

    >>
    >> And which nonexistant attributes would these be? Oh yes, I see, the
    >> one where you claim that <font face is not a valid tag, even though
    >> it is acually a quite valid font tag with a quite valid face
    >> attribute, or did I miss one other of your errors? Deprecated may be
    >> but not invalid.
    >>
    >> And you might take your own advice and validate *your* code.
    >>
    >> <quote>
    >> <form...>
    >> </form>
    >> <input type="submit"...
    >> </quote>
    >>
    >> Doesn't look very valid to me :)
    >>

    >
    >
    > I did validate it,


    So how do you explain this:

    EMAIL: <input type="text" name="your_email"
    </form>

    Clearly invalid, and the validator complains bitterly about it.

    > jerk.


    That may be so but I don't lie.
     
    rf, Feb 16, 2009
    #7
  8. richard

    rf Guest

    Jonathan N. Little wrote:
    > richard wrote:


    >> EMAIL: <input type="text" name="your_email"
    >> </form>


    > You do realize that your example is not remotely valid, right? For
    > one, the submit button is not even within the form that it is
    > supposed to submit.


    Actually the submit button *is* in the form. See the above, the </form>
    ending tag is swallowed up in an error, the previous input lacking a >, so
    the form goes to the end of the page, or somewhere :)
     
    rf, Feb 16, 2009
    #8
  9. richard

    richard Guest

    On Mon, 16 Feb 2009 02:32:51 GMT, "rf" <> wrote:

    >richard wrote:
    >> On Mon, 16 Feb 2009 01:15:47 GMT, "rf" <> wrote:
    >>
    >>> richard wrote:
    >>>
    >>>> Along with all the pointless and useless, nonexistant attributes.
    >>>
    >>> And which nonexistant attributes would these be? Oh yes, I see, the
    >>> one where you claim that <font face is not a valid tag, even though
    >>> it is acually a quite valid font tag with a quite valid face
    >>> attribute, or did I miss one other of your errors? Deprecated may be
    >>> but not invalid.
    >>>
    >>> And you might take your own advice and validate *your* code.
    >>>
    >>> <quote>
    >>> <form...>
    >>> </form>
    >>> <input type="submit"...
    >>> </quote>
    >>>
    >>> Doesn't look very valid to me :)
    >>>

    >>
    >>
    >> I did validate it,

    >
    >So how do you explain this:
    >
    >EMAIL: <input type="text" name="your_email"
    ></form>
    >
    >Clearly invalid, and the validator complains bitterly about it.
    >
    >> jerk.

    >
    >That may be so but I don't lie.
    >



    For one, the validator says the code validates.
    Now if you'll kindly note, it issued a "WARNING".

    Now exactly what does w3schools.com have to say about this method you
    question?
    http://www.w3schools.com/TAGS/tag_form.asp

    Oh my. Looks like you just your ass kicked.


    Validation Output: 1 Warning

    Below is a list of the warning message(s) produced when checking your
    document.

    1. Warning Line 21, Column 0: unclosed start-tag requires SHORTTAG
    YES.

    </form>

    The construct <foo<bar> is valid in HTML (it is an example of
    the rather obscure “Shorttags” feature) but its use is not
    recommended. In most cases, this is a typo that you will want to fix.
    If you really want to use shorttags, be aware that they are not well
    implemented by browsers.
     
    richard, Feb 16, 2009
    #9
  10. On 2009-02-16, richard wrote:
    ....
    > Now exactly what does w3schools.com have to say about this method you
    > question?
    > http://www.w3schools.com/TAGS/tag_form.asp
    >
    > Oh my. Looks like you just your ass kicked.


    What I see on that page is a snippet of invalid HTML.

    (You do know that w3schools has no connection with W3C?)

    --
    Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
    ===================================================================
    Author:
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
     
    Chris F.A. Johnson, Feb 16, 2009
    #10
  11. rf wrote:
    > Jonathan N. Little wrote:
    >> richard wrote:

    >
    >>> EMAIL: <input type="text" name="your_email"
    >>> </form>

    >
    >> You do realize that your example is not remotely valid, right? For
    >> one, the submit button is not even within the form that it is
    >> supposed to submit.

    >
    > Actually the submit button *is* in the form. See the above, the </form>
    > ending tag is swallowed up in an error, the previous input lacking a >, so
    > the form goes to the end of the page, or somewhere :)
    >
    >


    You're right, I missed that error among all the rest!

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Feb 16, 2009
    #11
  12. richard wrote:

    > Now exactly what does w3schools.com have to say about this method you
    > question?
    > http://www.w3schools.com/TAGS/tag_form.asp


    The page proves that w3schools isn't a place to be trusted.

     
    Beauregard T. Shagnasty, Feb 16, 2009
    #12
  13. richard

    richard Guest

    On Mon, 16 Feb 2009 03:25:51 GMT, "rf" <> wrote:

    >Jonathan N. Little wrote:
    >> richard wrote:

    >
    >>> EMAIL: <input type="text" name="your_email"
    >>> </form>

    >
    >> You do realize that your example is not remotely valid, right? For
    >> one, the submit button is not even within the form that it is
    >> supposed to submit.

    >
    >Actually the submit button *is* in the form. See the above, the </form>
    >ending tag is swallowed up in an error, the previous input lacking a >, so
    >the form goes to the end of the page, or somewhere :)
    >



    No shit sherlock. That was a minor typo I didn't catch.
     
    richard, Feb 16, 2009
    #13
  14. richard

    John Guest

    On Sun, 15 Feb 2009 23:22:51 -0500, "Beauregard T. Shagnasty"
    <> wrote:

    >richard wrote:
    >
    >> Now exactly what does w3schools.com have to say about this method you
    >> question?
    >> http://www.w3schools.com/TAGS/tag_form.asp

    >
    >The page proves that w3schools isn't a place to be trusted.
    >
    >
     
    John, Feb 16, 2009
    #14
  15. richard

    rf Guest

    richard wrote:
    > On Mon, 16 Feb 2009 02:32:51 GMT, "rf" <> wrote:
    >
    >> richard wrote:
    >>> On Mon, 16 Feb 2009 01:15:47 GMT, "rf" <> wrote:
    >>>
    >>>> richard wrote:
    >>>>
    >>>>> Along with all the pointless and useless, nonexistant attributes.
    >>>>
    >>>> And which nonexistant attributes would these be? Oh yes, I see, the
    >>>> one where you claim that <font face is not a valid tag, even though
    >>>> it is acually a quite valid font tag with a quite valid face
    >>>> attribute, or did I miss one other of your errors? Deprecated may
    >>>> be but not invalid.
    >>>>
    >>>> And you might take your own advice and validate *your* code.
    >>>>
    >>>> <quote>
    >>>> <form...>
    >>>> </form>
    >>>> <input type="submit"...
    >>>> </quote>
    >>>>
    >>>> Doesn't look very valid to me :)
    >>>>
    >>>
    >>>
    >>> I did validate it,

    >>
    >> So how do you explain this:
    >>
    >> EMAIL: <input type="text" name="your_email"
    >> </form>
    >>
    >> Clearly invalid, and the validator complains bitterly about it.
    >>
    >>> jerk.

    >>
    >> That may be so but I don't lie.
    >>

    >
    >
    > For one, the validator says the code validates.
    > Now if you'll kindly note, it issued a "WARNING".
    >
    > Now exactly what does w3schools.com have to say about this method you
    > question?
    > http://www.w3schools.com/TAGS/tag_form.asp
    >
    > Oh my. Looks like you just your ass kicked.


    I got my arse kicked by w3schools? Har bloody har.
     
    rf, Feb 16, 2009
    #15
  16. richard

    rf Guest

    richard wrote:
    > On Mon, 16 Feb 2009 03:25:51 GMT, "rf" <> wrote:
    >
    >> Jonathan N. Little wrote:
    >>> richard wrote:

    >>
    >>>> EMAIL: <input type="text" name="your_email"
    >>>> </form>

    >>
    >>> You do realize that your example is not remotely valid, right? For
    >>> one, the submit button is not even within the form that it is
    >>> supposed to submit.

    >>
    >> Actually the submit button *is* in the form. See the above, the
    >> </form> ending tag is swallowed up in an error, the previous input
    >> lacking a >, so the form goes to the end of the page, or somewhere
    >> :)
    >>

    >
    >
    > No shit sherlock. That was a minor typo I didn't catch.


    So how did the validitor not pick it up when you "validated" the code you
    posted? Or did you validate it and then type it again, in which case you did
    *not* validate the code you posted, you validated something else. Or (more
    likely) you validated it after we all told you how invalid it was.

    And even if that error were not there, you still have the gross error of
    having a submit button outside the form it is supposed to be submitting, or
    is that a minor typo you didn't catch either?

    Here is a copy/paste (not a retype) of the code you posted, with your minor
    typo fixed.

    http://barefile.com.au/test/richard.html

    What happens when you click that submit button. For me absolutely bloody
    nothing happens because that submit button is not inside a form. No form, no
    submit. Get the idea?

    Jerk :)
     
    rf, Feb 16, 2009
    #16
  17. richard

    rf Guest

    richard wrote:
    > On Mon, 16 Feb 2009 02:32:51 GMT, "rf" <> wrote:
    >
    >> richard wrote:
    >>> On Mon, 16 Feb 2009 01:15:47 GMT, "rf" <> wrote:
    >>>
    >>>> richard wrote:
    >>>>
    >>>>> Along with all the pointless and useless, nonexistant attributes.
    >>>>
    >>>> And which nonexistant attributes would these be? Oh yes, I see, the
    >>>> one where you claim that <font face is not a valid tag, even though
    >>>> it is acually a quite valid font tag with a quite valid face
    >>>> attribute, or did I miss one other of your errors? Deprecated may
    >>>> be but not invalid.
    >>>>
    >>>> And you might take your own advice and validate *your* code.
    >>>>
    >>>> <quote>
    >>>> <form...>
    >>>> </form>
    >>>> <input type="submit"...
    >>>> </quote>
    >>>>
    >>>> Doesn't look very valid to me :)
    >>>>
    >>>
    >>>
    >>> I did validate it,

    >>
    >> So how do you explain this:
    >>
    >> EMAIL: <input type="text" name="your_email"
    >> </form>
    >>
    >> Clearly invalid, and the validator complains bitterly about it.
    >>
    >>> jerk.

    >>
    >> That may be so but I don't lie.
    >>

    >
    >
    > For one, the validator says the code validates.
    > Now if you'll kindly note, it issued a "WARNING".
    >
    > Now exactly what does w3schools.com have to say about this method you
    > question?
    > http://www.w3schools.com/TAGS/tag_form.asp
    >
    > Oh my. Looks like you just your ass kicked.
    >
    >
    > Validation Output: 1 Warning
    >
    > Below is a list of the warning message(s) produced when checking your
    > document.
    >
    > 1. Warning Line 21, Column 0: unclosed start-tag requires SHORTTAG
    > YES.
    >
    > </form>
    >
    > The construct <foo<bar> is valid in HTML (it is an example of
    > the rather obscure "Shorttags" feature) but its use is not
    > recommended. In most cases, this is a typo that you will want to fix.
    > If you really want to use shorttags, be aware that they are not well
    > implemented by browsers.


    Ah, I see. It's OK to shoot yourself in the foot then.

    They must have some very valid reason for recommending that this is not
    used, like for example that it is not well implemeneted by browsers?

    BTW The validator does not issue any warning at all if you serve up a submit
    button that is not inside a form. Perfectly valid. Does nothing however. I
    guess that's like shooting yourself in the foot with a blank :)
     
    rf, Feb 16, 2009
    #17
  18. John wrote:

    > Just wondering how I make the submit button centered?


    <form action="action-script.php" method="post">
    <!-- other fields here -->
    <div style="text-align: center;">
    <label for "submit">
    <input type="submit" value=" Submit " id="submit1">
    </label>
    </div>

    ...though I would place the styling in the CSS file.

    This is basic stuff. ;-)

    --
    -bts
    -Friends don't let friends drive Windows
     
    Beauregard T. Shagnasty, Feb 16, 2009
    #18
  19. Beauregard T. Shagnasty wrote:
    > richard wrote:
    >
    >> Now exactly what does w3schools.com have to say about this method you
    >> question?
    >> http://www.w3schools.com/TAGS/tag_form.asp

    >
    > The page proves that w3schools isn't a place to be trusted.
    >
    >
     
    Jonathan N. Little, Feb 16, 2009
    #19
  20. richard

    richard Guest

    On Mon, 16 Feb 2009 08:25:54 GMT, "rf" <> wrote:

    >richard wrote:
    >> On Mon, 16 Feb 2009 03:25:51 GMT, "rf" <> wrote:
    >>
    >>> Jonathan N. Little wrote:
    >>>> richard wrote:
    >>>
    >>>>> EMAIL: <input type="text" name="your_email"
    >>>>> </form>
    >>>
    >>>> You do realize that your example is not remotely valid, right? For
    >>>> one, the submit button is not even within the form that it is
    >>>> supposed to submit.
    >>>
    >>> Actually the submit button *is* in the form. See the above, the
    >>> </form> ending tag is swallowed up in an error, the previous input
    >>> lacking a >, so the form goes to the end of the page, or somewhere
    >>> :)
    >>>

    >>
    >>
    >> No shit sherlock. That was a minor typo I didn't catch.

    >
    >So how did the validitor not pick it up when you "validated" the code you
    >posted? Or did you validate it and then type it again, in which case you did
    >*not* validate the code you posted, you validated something else. Or (more
    >likely) you validated it after we all told you how invalid it was.
    >
    >And even if that error were not there, you still have the gross error of
    >having a submit button outside the form it is supposed to be submitting, or
    >is that a minor typo you didn't catch either?
    >
    >Here is a copy/paste (not a retype) of the code you posted, with your minor
    >typo fixed.
    >
    >http://barefile.com.au/test/richard.html
    >
    >What happens when you click that submit button. For me absolutely bloody
    >nothing happens because that submit button is not inside a form. No form, no
    >submit. Get the idea?
    >
    >Jerk :)
    >



    The warning issued was in reference to that unclosed tag. Once the tag
    was properly closed, no warnings and 100% valdiation.
     
    richard, Feb 16, 2009
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sharone Shani
    Replies:
    1
    Views:
    551
    Cowboy \(Gregory A. Beamer\)
    Oct 21, 2003
  2. Chance Hopkins

    To John Saunders

    Chance Hopkins, Nov 7, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    330
    John Saunders
    Nov 7, 2003
  3. Edward
    Replies:
    2
    Views:
    1,591
    Edward
    Jul 20, 2004
  4. RN
    Replies:
    3
    Views:
    513
    Matt Berther
    Feb 27, 2005
  5. johnp
    Replies:
    4
    Views:
    3,679
    Toby Inkster
    May 23, 2005
Loading...

Share This Page