When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag.
<input type = "hidden" name = "user" value = " ">
<input type = "hidden" name = "talValue" value = "talValue">
<input type = "hidden" name = "directIt" value = " ">
My markup:
<body>
<div class = containerboxPre>
<div class=framebox><h3>Evaluation - Lab Home Page</h3></div>
<form id='form1' name='form1' action="/cgi-bin/yada.pl" method="post">
<input type="hidden" name="user" value="">
<input type="hidden" name="talValue" value="talValue">
<input type="hidden" name="directIt" value="">
<div class=framebox>
<div class="topmenu">
<ul>
<li><a href="yada1.html">Register New</a></li>
<li><a href="javascript:logInR();">Edit Profile</a></li>
<li><input type="password" name="username1" ></li>
<li><a href="javascript:logIn();">Login Client</a><span
id='errorMsg'></span></li>
</ul>
</div>
</div>
</form>
</div>
</body></html>
--
Ed Jay (remove 'M' to respond by email) 6 5195
Ed Jay <ed***@aes-intl.comwrote:
When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag.
<input type = "hidden" name = "user" value = " ">
<input type = "hidden" name = "talValue" value = "talValue">
<input type = "hidden" name = "directIt" value = " ">
My markup:
[...]
<form id='form1' name='form1' action="/cgi-bin/yada.pl" method="post">
<input type="hidden" name="user" value="">
<input type="hidden" name="talValue" value="talValue">
<input type="hidden" name="directIt" value="">
[...]
</form>
The Strict DTDs allow only block-level elements inside FORM, so you have to
put the INPUT elements inside block-level elements. You can't put them
directly inside the FORM element.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/
"The handwriting on the wall may mean you need a notepad by the phone."
Ed Jay wrote:
When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here;
The error message is quite clear. INPUT is not allowed where it's
nesting (directly under FORM).
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag.
That is: a block level container is required.
<input type = "hidden" name = "user" value = " ">
<input type = "hidden" name = "talValue" value = "talValue">
<input type = "hidden" name = "directIt" value = " ">
Validation quick fix: enclose them INPUTs in a DIV.
My markup:
<body>
<div class = containerboxPre>
<div class=framebox><h3>Evaluation - Lab Home Page</h3></div>
Where are h1 and h2?
<li><a href="javascript:logInR();">Edit Profile</a></li>
What happens when that link is activated and JavaScript is not enabled
or it's unavailable?
Osmo
Ed Jay wrote:
When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag.
It says that you can't put the input element where you put it, and
that there's one of those other elements missing.
<form id='form1' name='form1' action="/cgi-bin/yada.pl" method="post">
<input type="hidden" name="user" value="">
<inputcan't go directly inside <form>. You will need to wrap them in
a 'p', 'h1', etc.
Sinse they are hidden fields, you can easily just move them inside
your <div class="framebox"- they won't take up any space anyway.
--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Els scribed:
>Ed Jay wrote:
>When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.
It says that you can't put the input element where you put it, and that there's one of those other elements missing.
><form id='form1' name='form1' action="/cgi-bin/yada.pl" method="post"> <input type="hidden" name="user" value="">
<inputcan't go directly inside <form>. You will need to wrap them in a 'p', 'h1', etc. Sinse they are hidden fields, you can easily just move them inside your <div class="framebox"- they won't take up any space anyway.
Thanks, ELS.
--
Ed Jay (remove 'M' to respond by email)
Darin McGrew scribed:
>Ed Jay <ed***@aes-intl.comwrote:
>When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag.
<input type = "hidden" name = "user" value = " "> <input type = "hidden" name = "talValue" value = "talValue"> <input type = "hidden" name = "directIt" value = " ">
My markup: [...] <form id='form1' name='form1' action="/cgi-bin/yada.pl" method="post"> <input type="hidden" name="user" value=""> <input type="hidden" name="talValue" value="talValue"> <input type="hidden" name="directIt" value=""> [...] </form>
The Strict DTDs allow only block-level elements inside FORM, so you have to put the INPUT elements inside block-level elements. You can't put them directly inside the FORM element.
Thanks, Darin.
--
Ed Jay (remove 'M' to respond by email)
Osmo Saarikumpu scribed:
>Ed Jay wrote:
>When I try to validate the following I receive three [identical] errors:
Error Line 47 column 41: document type does not allow element "INPUT" here;
The error message is quite clear. INPUT is not allowed where it's nesting (directly under FORM).
Understood (now). Thanks.
> Validation quick fix: enclose them INPUTs in a DIV.
Yup.
>
>My markup: <div class=framebox><h3>Evaluation - Lab Home Page</h3></div>
Where are h1 and h2?
Didn't use them on this page. No reason to.
>
><li><a href="javascript:logInR();">Edit Profile</a></li>
What happens when that link is activated and JavaScript is not enabled or it's unavailable?
Nothing, but this is a private site and all my users have js enabled.
Similarly, I'm not trying to anything insofar as SEO is concerned, as this
portion of the site is password protected and not available to Joe Public.
Thanks for the input.
--
Ed Jay (remove 'M' to respond by email) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: HH |
last post by:
I'm learning to design web applications with php, mysql, and apache
from a book. I copied a sample application called guestbook 2000 that
came with the CD in the book to my htdocs folder, but...
|
by: Pete |
last post by:
I have form/select which executes a function using onchange. No
problem. However, when I validate the page with a strict HTML 4.01
doctype at http://validator.w3.org, it demands either an action or...
|
by: Zhang Weiwu |
last post by:
Hello. I just read a article "rdf in html: approaches" at
"http://infomesh.net/2002/rdfinhtml" (guided by google).
Looking into the "Embed XML RDF Part II: Embrace Validation" part, there
are an...
|
by: Roger Withnell |
last post by:
I want to validate the data entered into a form text field by calling a
function with onblur, doing the validation and, if the input is invalid,
giving an alert to the user and returning focus and...
|
by: zlusca |
last post by:
Hi, guys
I have asp.net form contain several textbox controls and one field is
userName I want to validate this field to make sure there is no other
user have the same userName before saving. so...
|
by: Jason |
last post by:
I am able fire my field validators in FireFox on the server side using...
Page.Validate()
If Not Page.IsValid Then
Exit Sub
End If
But the it won't fire Custom Validators. Anybody know why?
|
by: amir |
last post by:
Hi,
When compiling a page in VS2005 this morning I received 101 messages
regarding schema problems in my web.config file.
When I go to view an aspx page in my IIS, IE just displays a blank...
|
by: pstephen01010101 |
last post by:
I've ran out of debugging ideas. If anyone knows why this won't run in IE 6 please let me know. It works fine in Fire Fox 2.0.0.3 and Netscape (version unknown). I suspect there is something basic...
|
by: Summercool |
last post by:
this HTML seems perfectly good but won't validate... any idea?
http://www.0011.com/test_size2.html
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |