Google Answers Logo
View Question
 
Q: XTHML Help ( Answered 4 out of 5 stars,   4 Comments )
Question  
Subject: XTHML Help
Category: Computers > Software
Asked by: kittybooboo-ga
List Price: $5.00
Posted: 23 Feb 2004 20:10 PST
Expires: 24 Mar 2004 20:10 PST
Question ID: 310104
I am so confused with this class I need some help with a software
package that I can ask a question and it will show me how to do it in
xthml code

Clarification of Question by kittybooboo-ga on 23 Feb 2004 20:23 PST
I am trying to create a web form that is in table form that  shows
First Name with Name box
Last Name with name box
Sex: with radio buttons 1 for male and 1 for female
Date of Birth in (MMDDYYYY)with box and This year my birthday will
fall on a: then a name box.  Then a box to click for Submit.  Everthin
must line up left justify .
It must validate in xhtml.  In the body set method to post and actions
can just be equal to #
Help.

Can you show me how to do this?

Clarification of Question by kittybooboo-ga on 23 Feb 2004 20:27 PST
What I was looking for was a software package that you could ask
questions and it will show you.  Telling you verbally would be better.
 But that would also be known as an oooooonline tutor.  I need you now
Answer  
Subject: Re: XTHML Help
Answered By: snapanswer-ga on 24 Feb 2004 00:22 PST
Rated:4 out of 5 stars
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>Form</title>
</head>

<body>

<form action="#">
<p>
First Name  
 <input type="text" name="firstname" size="20" maxlength="20" />
</p>

<p>
Last Name  
 <input type="text" name="lastname" size="20" maxlength="20" />
</p>

<p>
Sex:  
  Male<input type="radio" name="sex" value="Male" />  
  Female<input type="radio" name="sex" value="Female" />
</p>

<p>
Date of Birth  (MMDDYYYY)
 <input type="text" name="dateofbirth" size="8" maxlength="8"  />
</p>

<p>
This year my birthday will fall on a:
 <input type="text" name="birthdayfalls" size="20" maxlength="20" />
</p>

<p>
 <input type="submit" name="submitbutton" value="Submit" />
</p>

</form>

</body>
</html>

Clarification of Answer by snapanswer-ga on 24 Feb 2004 00:40 PST
Above, I have posted xhtml that validates as xhtml strict in the W3C validator:
http://validator.w3.org/

A couple notes about things to look for when moving from html to xhtml.
1.  Every tag must be closed.  So something like an <input> tag which
does not have a closing tag in html can be closed by adding a space
and slash, like this <input />

2.  Tags should be in lowercase.  While it did not matter in html,
xhtml is strict about this.

3.  You do well to avoid <br /> in favor of wrapping things in
paragraph containers with <p>  </p> tags.

Resources used in composing this answer:
W3C Validator
http://validator.w3.org

HVCC.edu XHTML Reference:  Form Text Fields
http://academ.hvcc.edu/~kantopet/xhtml/index.php?page=xhtml+text+fields&parent=xhtml+forms

HVCC.edu XHTML Reference:  Form Button Fields
http://academ.hvcc.edu/~kantopet/xhtml/index.php?page=xhtml+button+fields&parent=xhtml+forms

HVCC.edu XHTML Reference:  Form Selection Fields
http://academ.hvcc.edu/~kantopet/xhtml/index.php?page=xhtml+selection+fields&parent=xhtml+forms

W3Schools XHTML Reference
http://www.w3schools.com/xhtml/xhtml_reference.asp

Brainstormsandraves.com:  "XHTML Transitional, Strict - What's the Difference?"
http://www.brainstormsandraves.com/archives/2003/10/21/xhtml/


Search strategy:  Use xhtml reference materials and the W3C validator
to compose valid xhtml.

Search terms:
xhtml form sample
://www.google.com/search?q=xhtml+form+sample

xhtml transitional strict
://www.google.com/search?q=xhtml+transitional+strict


I hope you have found this answer useful and easy to understand.  If
you have any questions about the information provided, please do not
hesitate to post a clarification request before rating the answer.
kittybooboo-ga rated this answer:4 out of 5 stars

Comments  
Subject: Re: XTHML Help
From: ivles-ga on 24 Feb 2004 20:41 PST
 
bad... bad form, no <label> tag?
Subject: Re: XTHML Help
From: kittybooboo-ga on 25 Feb 2004 22:17 PST
 
I needed it to be in a table form.  Buy, I sure hit the boks.  5 to be exact
Subject: Re: XTHML Help
From: snapanswer-ga on 26 Feb 2004 11:48 PST
 
I am sorry that you needed it in a table.  Had I seen that in the
question, I would have done that for you.  Just so you know for next
time, if you put in a clarification request (such as, "I need it in a
table") before rating the answer, a researcher has the opportunity to
help further.

In any event, I hope the xhtml provided helped in some capacity.
Subject: Re: XTHML Help
From: snapanswer-ga on 26 Feb 2004 11:51 PST
 
My mistake, I must have missed the word table ("in a table form") in
your question.  I am sorry I missed that.  My sincere apologies.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy