HardwareLogic

Go Back   HardwareLogic > HL Members Area > HL Lounge
Home Forums Rules All AlbumsBlogs Donate Subscriptions Register Mark Forums Read

HL Lounge A laid back place to discuss "Off Topic" stuff. Respect your fellow members and follow the forum rules.

Reply
 
LinkBack Thread Tools
Old May 2nd, 2007   #1
Audentes Fortuna Juvat
 
garetjax's Avatar
 
Join Date: Feb 2006
Location: Somewhere south of sanity
Posts: 1,460
Default

I am in the process of trying to code a form with radio buttons and drop down menus. However, when I go to validate it 1.0 strict, I am getting the same errors. They are appearing at the "income", "interests", "register", "comments", "buttons", and "strictvalid" entries which leads me to beleive that this is a cascading error somewhere at the top of the code.

Quote:
Error Line 111 column 16: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag.

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned.

This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Anyone good with HTML and validating v1.0 strict able to help me out? The code follows in the next post.

W3C Validator 1.0 Strict link.

Code:
 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="XHTML namespace" xml:lang="en" lang="en">
<!-- -->
<!-- -->
<!-- -->
<!-- -->
<head>
<title>Lab 7</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
 
</head>
<body>
 
<p><strong>Fill out the following form to receive our newsletter</strong></p>
 
<p id="prename1"><input type="radio" value="Mr." name="prename1" />Mr.</p>
<p id="prename2"><input type="radio" value="Mrs." name="prename2" />Mrs.</p>
<p id="prename3"><input type="radio" value="Ms." name="prename3" />Ms.</p>
<p>Full Name: <input name="fullName" size="35" /></p>
<p>E-Mail: <input name="email" size="35" /></p>
<p>Phone Number (Optional)</p>
 
<div id="HP">Home Phone: <input name="hPhone" size="35" /></div>
<div id="BP">Business Phone: <input name="bPhone" size="35" /></div>
<div id="ST">State: <select name="state">
<option> </option>
<option>AK</option>
<option>AS</option>
<option>AZ</option>
<option>AR</option>
<option>CA</option>
<option>CO</option>
<option>CT</option>
<option>DE</option>
<option>DC</option>
<option>FM</option>
<option>FL</option>
<option>GA</option>
<option>GU</option>
<option>HI</option>
<option>ID</option>
<option>IL</option>
<option>IN</option>
<option>IA</option>
<option>KS</option>
<option>KY</option>
<option>LA</option>
<option>ME</option>
<option>MH</option>
<option>MD</option>
<option>MA</option>
<option>MI</option>
<option>MN</option>
<option>MS</option>
<option>MO</option>
<option>MT</option>
<option>NE</option>
<option>NV</option>
<option>NH</option>
<option>NJ</option>
<option>NM</option>
<option>NY</option>
<option>NC</option>
<option>ND</option>
<option>MP</option>
<option>OH</option>
<option>OK</option>
<option>OR</option>
<option>PW</option>
<option>PA</option>
<option>PR</option>
<option>RI</option>
<option>SC</option>
<option>SD</option>
<option>TN</option>
<option>TX</option>
<option>UT</option>
<option>VT</option>
<option>VI</option>
<option>VA</option>
<option>WA</option>
<option>WI</option>
<option>WV</option>
<option>WY</option>
<option>AA</option>
<option>AE</option>
<option>AP</option>
</div>
<p id="ZP"><input name="zip" size="35" /><br/>
 
 
<div id="income">
<input type="radio" value="$0 - $5,000" name="HI1" />$0 - $5,000<br/>
<input type="radio" value="$5,000 - $10,000" name="HI2" />$5,000 - $10,000<br/>
<input type="radio" value="$10,000 - $20,000" name="HI3" />$10,000 - $20,000<br/>
<input type="radio" value="$20,000 - $30,000" name="HI4" />$20,000 - $30,000<br/>
<input type="radio" value="Over $30,000" name="HI5" />Over $30,000<br/>
</div>
 
<div id="interests">
<input type="checkbox" name= "sports" /> Sports<br/>
<input type="checkbox" name= "travel" /> Travel<br/>
<input type="checkbox" name= "books" /> Books<br/>
<input type="checkbox" name= "theater" /> Theater<br/>
</div>
 
<div id="register">
<p id="id">User ID (6 characters max): <input name="userID" size="6" /></p>
<p id="pass1">Password (4 characters max): <input name="pass" size="4" /></p>
<p id="pass2">Re-enter Password: <input name="pass" size="4" /></p>
</div>
 
<p id="comments">
Please provide any additional comments:<br/>
<textarea rows="3" cols="30" name="comments" >Please enter text here</textarea>
</p>
 
<div id="buttons">
<input type="submit" value="Send Form" />
<input type="reset" value="Reset Form" />
</div>
 
 
 
<div id="strictvalid">
<p id="valid_icon_strict"><img src="valid_icon_strict.bmp" alt="W3C Strict Validated" width="88" height="31" /></p>
</div>
<div id="cssvalid">
<p id="valid_icon_css"><img src="valid_icon_css.bmp" alt="W3C CSS Validated" width="88" height="31" /></p>
</div> 
 
</body>
</html>



garetjax is offline   Reply With Quote
Reply

  HardwareLogic > HL Members Area > HL Lounge

Tags
html, strict, validating


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems!!! ugh........ Parker Troubleshooting 25 May 8th, 2008 10:41
DVI Problems PkL728 General Computing 9 August 20th, 2007 21:33
Oh the problems i have Mithosphere Cooling 15 July 28th, 2007 14:28
HTML Q&A LadyFrost Software & OSs 10 June 10th, 2007 18:01
HTML Help: Experienced coders read Tyreal General Computing 1 March 12th, 2007 16:52


All times are GMT -8. The time now is 07:00.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© HardwareLogic 2005 - 2008. All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49