473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wc3 Validation error question

Here is the context in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Paddy' s Dog Shows</title>
<meta content="six" name="author">
<link rel="stylesheet " type="text/css" href="dog_pages .css" title="Dog
Pages Styles" media="screen, print" />
</head>

line 8 is the link statement:

here is the error message

Errors
Line 8, character 109:
.... yles" media="screen, print" />
^Error: text is not allowed here; try
wrapping the text in a more descriptive container
what is the error and what did I do wrong.

--
Bill Drescher
william {at} TechServSys {dot} com
Jul 20 '05 #1
4 4483
bill drescher schrieb:
Here is the context in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Paddy' s Dog Shows</title>
<meta content="six" name="author">
<link rel="stylesheet " type="text/css" href="dog_pages .css" title="Dog
Pages Styles" media="screen, print" />
</head>

line 8 is the link statement:

here is the error message

Errors
Line 8, character 109:
... yles" media="screen, print" />
^Error: text is not allowed here; try
wrapping the text in a more descriptive container
what is the error and what did I do wrong.


You are mixing HTML and XML Style.
Drop the / in HTML empty tags.

Jan
--
Axis of Evil! Countries with death penalty on juveniles:
Iran, Nigeria, Pakistan, Saudia Arabia, USA
Jul 20 '05 #2
Els
bill drescher wrote:
Here is the context in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Paddy' s Dog Shows</title>
<meta content="six" name="author">
<link rel="stylesheet " type="text/css" href="dog_pages .css"
title="Dog Pages Styles" media="screen, print" />
</head>

line 8 is the link statement:

here is the error message

Errors
Line 8, character 109:
... yles" media="screen, print" />
^Error: text is not
allowed here; try
wrapping the text in a more descriptive container
what is the error and what did I do wrong.


Not sure if this causes the error, but your doctype states
HTML, not XHTML. So you shouldn't put a / before the >.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Annie Lennox - Walking On Broken Glass
Jul 20 '05 #3
In article <Xn************ *****@130.133.1 .4>,
Els <el*********@ti scali.nl> writes:
Not sure if this causes the error, but your doctype states
HTML, not XHTML. So you shouldn't put a / before the >.


Yes, that is the cause of the error. Google for SHORTTAGS, or see
http://valet.webthing.com/page/parsemode.html

If you validate with Page Valet and select SGML mode you'll get
the same error you saw. Select HTML mode and you'll get a more
meaningful error message.

--
Nick Kew
Jul 20 '05 #4
Jan Steffen wrote:
bill drescher schrieb:
Here is the context in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Paddy' s Dog Shows</title>
<meta content="six" name="author">
<link rel="stylesheet " type="text/css" href="dog_pages .css" title="Dog
Pages Styles" media="screen, print" />
</head>

line 8 is the link statement:

here is the error message

Errors
Line 8, character 109:
... yles" media="screen, print" />
^Error: text is not allowed here; try
wrapping the text in a more descriptive container
what is the error and what did I do wrong.


You are mixing HTML and XML Style.
Drop the / in HTML empty tags.

Jan

Thanks all, I redid the doctype as xhtml and all is well.

--
Bill Drescher
william {at} TechServSys {dot} com
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9456
by: Madha K | last post by:
I am developing a web application that need to support UTF-8 characters. For client side validations, can javascript be used to handle UTF-8 characters. 1) How javascript can be used to restrict non-utf8 characters? 2) Using javascript how to find the lengh of a string having unicode characters? e.g: For a field Name on the form, there is a...
1
1620
by: Colin Basterfield | last post by:
Hi, I have a web form which takes daily sales totals, both counts and monetary value and is done on a weekly basis, so on a Monday morning the User would enter these totals. Each total has a range, which at the lower end is >= 0 and the upper limit is configurable, these totals are then submitted to a web service which posts them to a data...
14
6277
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2) show the error message next to the control. For example, if the text field is empty with RequiredField Validator control, it can show the value in...
2
1594
by: Ely | last post by:
When validating a control client side, is there a way to get the error message to display in the validation summary as soon as the control losses focus? Right now it only displays when the user clicks on the submit button. Thanks, Ely
0
1249
by: aeshtry | last post by:
Hello dear friends I have an urgent question. Would you please give me your professional idea? I have an html table containing the ASP.Net validation summary and an ASP.Net label control. The table background has different color than other sections. I want to show the error message inside a section (with different background color) only when...
5
2796
by: Richard Brown | last post by:
Ok, I've been looking through the .NET SDK docs and stuff. I'm wondering if you can provide a control extender that does generic validation or functionality just by dropping it on the form. For instance, using the IExtenderProvider interface, you can specify properties, but there is nothing documented about linking into a control's events....
3
3358
by: redefined.horizons | last post by:
I'm new to C#, (coming from a Java programming background), and I have a question about the correct use of exceptions. My book "Programming C#" by O'Reilly says the following in Chapter 11, "Handling Exceptions", on page 245: "An error is caused by user action. For example, the user might enter a number where a letter is expected. Once...
27
4701
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it appears that the data goes straight to the processing page, rather than the javascript seeing if data is missing and popping up an alert. I thought it...
11
2976
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether certain fields match certain criteria, and inform the user in different ways when the data is wrong (offcourse, this will be checked on posting the...
2
2203
by: Sudhakar | last post by:
A) validating username in php as part of a registration form a user fills there desired username and this is stored in a mysql. there are certain conditions for the username. a) the username should only begin either letters or numbers, and Underscore character example = user123, 123user, u_ser123, user_123 = completely case insensitive
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.