473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can someone PLEASE help with one small validation error?

I cannot seem to figure this last error out. Could someone please let me know what to change?

Here's the error message:(error is located at the > after -374px">)

1. Error Line 250, Column 105: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

…00; POSITION: absolute; WIDTH: 1365px; HEIGHT: 126px; TOP: 23px; LEFT: -374px">

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>").

Here's the code in question:

<div class="Object487" style="WIDTH: 605px; HEIGHT: 37px">
<div align="center"><table border="0" cellspacing="0" cellpadding="0">
<tr><td valign="top" align="center"><div class="text-align:center;margin-left:0px;text-indent:0px;">
<span class="textstyle2"><a href="testimonials-from-customers.html">Visit our Testimonials Page<br>
</a><div style="Z-INDEX: 100; POSITION: absolute; WIDTH: 1365px; HEIGHT: 126px; TOP: 23px; LEFT: -374px">
See what some of our customers have to to say about our <br>Wood Signs, Address Plaques, and other custom routed products.<br>
</div></span></div></td></tr></table></div></div></div>

Thank you for any help you can give me on this, Jeff
Oct 26 '11 #1
2 1340
drhowarddrfine
7,435 Expert 4TB
You put a div element inside a span. span is an inline container and can only contain inline content, such as text or an img. A div is not inline.
Oct 26 '11 #2
Thank you dr, I have been trying to make some h2 and h3 headings but get multiple errors every time I try. I have finally given up on the headings as I just don't understand enough about their placement and such. Thanks again, Jeff
Oct 26 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Mark Tranchant | last post by:
I've helped a friend put together this site: http://www.widfordlodge.com/ Click on the CSS validation icon, and you'll get this error: -------------- Line: 75 Context : .footerimg Invalid...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
1
by: momo | last post by:
Hello Guys, I have a bit of a problem, I created a Dll called SecureQueryStringDll.dll and I had the dll put bin folder of my application first and it did not work so I then put it in the bin...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
2
by: MG | last post by:
On this page www.samurdermysteries.co.za I have the following code: <h3 style="margin:1em,0,1em,0.5em;">What makes South African Murder Mysteries different:</h3> <ul class="IndexList">...
1
by: runway27 | last post by:
i have 3 pages page1.php page2.php and page3.php in page1.php user fills a registration form in page2.php the user can review what they have entered and make any changes and page3.php...
1
by: runway27 | last post by:
i have a registration page where a user fills up a form such as username, first name, phone number etc. i need to do a validation for the following fields. any help will be greatly appreciated. ...
5
by: Alexander Mahone | last post by:
OK, I have this piece of code: void method(void* parameter) { 1: struct Data* dataOfReference=(struct Data*)parameter; 2: Info tmpInfo=(*dataOfReference).payload.data; 3: char*...
2
by: ryan.paquette | last post by:
Hello' I have a field in which I require validation in a before update event. The validation code I have works fine, no problem there. However I would like to turn off the default validation...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.