473,385 Members | 2,044 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,385 software developers and data experts.

<body></body> is invalid html 4 strict?

Xah
Here's a interesting case of invalid html 4 strict file.

In summary, if you have <body></bodywithout any content, the file
would be invalid under html 4 strict. Valid if html 4 lose.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<title></title>
</head>
<body>
</body>
</html>

Xah
∑ http://xahlee.org/

☄
Jun 27 '08 #1
23 2204
Sat, 21 Jun 2008 04:25:02 -0700 (PDT), /Xah/:
Here's a interesting case of invalid html 4 strict file.

In summary, if you have <body></bodywithout any content, the file
would be invalid under html 4 strict. Valid if html 4 lose.
Yes, it is correct according to the Strict
<http://www.w3.org/TR/html401/sgml/dtd.html>:
<!--=================== Document Body ====================================-->

<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->
and Transitional <http://www.w3.org/TR/html401/sgml/loosedtd.html>:
<!--=================== Document Body ====================================-->

<!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->
document type definitions.

--
Stanimir
Jun 27 '08 #2
On Sat, 21 Jun 2008 04:25:02 -0700 (PDT), Xah wrote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<title></title>
</head>
<body>
</body>
</html>
Hi Xah. For it to validate, you have to put something in the
<title></title>.

Hope you're well,
Ian
--
It is better to have loafed and lost than
never to have loafed at all. (James Thurber)
http://rastallian.blogspot.com/
Jun 27 '08 #3
Scripsit Lance Manyon:
For it to validate, you have to put something in the
<title></title>.
No you don't. (Of course, a title element with empty content is a bad
idea, but that has nothing to do with validation.)

Next time, considering at least testing your advice before posting it.
(Anyone who can read DTDs and therefore give informed advice on
validation can immediately see that your advice is wrong, of course.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 27 '08 #4
On Jun 21, 12:43*pm, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
Scripsit Lance Manyon:
For it to validate, you have to put something in the
<title></title>.

No you don't. (Of course, a title element with empty content is a bad
idea, but that has nothing to do with validation.)

Next time, considering at least testing your advice before posting it.
(Anyone who can read DTDs and therefore give informed advice on
validation can immediately see that your advice is wrong, of course.)

--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
This post could have been more diplomatic.
Jun 27 '08 #5
Scripsit reporter:

[...]
>--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/

This post could have been more diplomatic.
Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which
wasn't worth sending even by e-mail. Since you use a fake name, I expect
your e-mail address to be potentially fake anyway, so I'm not sending
this personal message by e-mail - but I have a good reason.

If you don't know the elements of Usenet conduct, you should refrain
from giving advice on posting in public. Besides, these groups aren't
about diplomacy, and clueless technical advice does not deserve any
diplomatic moves.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 27 '08 #6
On 2008-06-21, Xah wrote:
Here's a interesting case of invalid html 4 strict file.

In summary, if you have <body></bodywithout any content, the file
would be invalid under html 4 strict. Valid if html 4 lose.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">
<title></title>
</head>
<body>
</body>
</html>
The minimum valid page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p>
--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Jun 27 '08 #7
Scripsit Chris F.A. Johnson:
The minimum valid page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p>
Not really. You can change
<title></title>
to
<title//
and still keep it valid.

Kids, don't do this at home, or on the www.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Jun 27 '08 #8
On Jun 21, 1:43*pm, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
Scripsit reporter:

[...]
--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
This post could have been more diplomatic.

Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which
wasn't worth sending even by e-mail. Since you use a fake name, I expect
your e-mail address to be potentially fake anyway, so I'm not sending
this personal message by e-mail - but I have a good reason.

If you don't know the elements of Usenet conduct, you should refrain
from giving advice on posting in public. Besides, these groups aren't
about diplomacy, and clueless technical advice does not deserve any
diplomatic moves.

--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
Perhaps I was wrong. YOU could not have been more diplomatic.
Jun 27 '08 #9
Jukka

If you spent as much time trying to help people here as you do with
your rude messages, and correcting the questions they ask, the rest
wouldn't have to help as much.

Check your postings. See just how few of them really help anyone.

Don't even talk about Usenet conduct.

Jack
On Sat, 21 Jun 2008 21:43:38 +0300, "Jukka K. Korpela"
<jk******@cs.tut.fiwrote:
>Scripsit reporter:

[...]
>>--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/

This post could have been more diplomatic.

Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which
wasn't worth sending even by e-mail. Since you use a fake name, I expect
your e-mail address to be potentially fake anyway, so I'm not sending
this personal message by e-mail - but I have a good reason.

If you don't know the elements of Usenet conduct, you should refrain
from giving advice on posting in public. Besides, these groups aren't
about diplomacy, and clueless technical advice does not deserve any
diplomatic moves.
Jun 27 '08 #10
Jukka K. Korpela wrote:
Scripsit reporter:

[...]
>>--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/

This post could have been more diplomatic.

Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which
wasn't worth sending even by e-mail. Since you use a fake name, I expect
your e-mail address to be potentially fake anyway, so I'm not sending
this personal message by e-mail - but I have a good reason.

If you don't know the elements of Usenet conduct, you should refrain
from giving advice on posting in public. Besides, these groups aren't
about diplomacy,
*Life* is about diplomacy. About *etiquette*. I wonder how such a
stickler for *netiquette* such as yourself, who demands it at all cost
from everyone who participates on Usenet, has so thoroughly exempted
himself from its encompassing and millennia-older concern, etiquette,
which applies to anyone who participates in interaction with other
people. To be all consumed by netiquette but oblivious to
etiquette--it's hard to get more clueless than that.
and clueless technical advice does not deserve any
diplomatic moves.
Jun 27 '08 #11
Hey Jukka . . .

The tribe has spoken!
Jun 27 '08 #12
Scripsit Harlan Messinger:
*Life* is about diplomacy.
I like your pointless babbling more than your attempts to look
philosophical (using the well-known formula of writing "Life is" and
appending random words).
>and clueless technical advice does not deserve any
diplomatic moves.
You apparently decided to resist the temptation to make any comment on
this remotely on-topic note, despite your quoting it. That's a common
way to collect some additional bogosity points.

Regarding the original question about a body element with empty content
being valid in HTML 4 Strict, the correct answer had been given when a
person had to post a completely wrong answer. This reflected the fact
that he does not understand what validity is (in the HTML context) at
all but just made a wild guess.

Nobody needs such guessing any more than your attacks at a person who
points out the bogosity. If you think that the incorrectness and grossly
misleading nature of a post should be given in a manner that meets your
definition of diplomacy, you can do that as often as you like. Be my
guest. But you are just a noise-maker if you say nothing of the kind but
instead just say that someone wasn't diplomatic to your taste, in a
matter where there is no need for diplomacy.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 27 '08 #13
On 06/21/08 03:26 pm, reporter wrote:
>Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
This post could have been more diplomatic.

Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which [...]

Perhaps I was wrong. YOU could not have been more diplomatic.
And you persist on wasting my time by not trimming you posts. You seem a
bit on the slow-learning side.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jun 27 '08 #14
On Jun 22, 3:50*pm, Jim Moe <jmm-list.AXSPA...@sohnen-moe.comwrote:
On 06/21/08 03:26 pm, reporter wrote:
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
This post could have been more diplomatic.
Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which [....]
Perhaps I was wrong. *YOU could not have been more diplomatic.

* And you persist on wasting my time by not trimming you posts. You seem a
bit on the slow-learning side.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Even though you are quite rude, I will be happy to comply if there is
some sort of a published standard for how one ought to post here.
Let's see if you can exercise your basic commuication skills and give
a link to a page that describes the standards you adhere too.

Always happy to cooperate, let's see if you can do the same.

Thanks you sir.
Jun 27 '08 #15
reporter wrote:
On Jun 22, 3:50 pm, Jim Moe wrote:
>On 06/21/08 03:26 pm, reporter wrote:
[Jukka Korpela wrote]
>>>Thank you for the usual bogosity warning of fullquoting a message down
to the sig, followed by pointless off-topic personal advice, which [...]
Perhaps I was wrong. YOU could not have been more diplomatic.
And you persist on wasting my time by not trimming you posts. You seem a
bit on the slow-learning side.
>
Even though you are quite rude, I will be happy to comply if there is
some sort of a published standard for how one ought to post here.
Let's see if you can exercise your basic commuication skills and give
a link to a page that describes the standards you adhere too.
Not a standard in any official sense, but a set of long-standing
conventions. See:

http://oakroadsystems.com/genl/unice.htm , esp.
http://oakroadsystems.com/genl/unice.htm#quote, extra esp.
http://oakroadsystems.com/genl/unice.htm#trim

--
John
Pondering the value of the UIP: http://improve-usenet.org/
Jun 27 '08 #16
On 23 Jun, 01:45, reporter <TruckSaf...@gmail.comwrote:
On Jun 22, 3:50*pm, Jim Moe <jmm-list.AXSPA...@sohnen-moe.comwrote:
* And you persist on wasting my time by not trimming you posts. You seem a
Even though you are quite rude, I will be happy to comply if there is
some sort of a published standard for how one ought to post here.
Please see the pages <URL:http://www.anta.net/misc/nnq/ncaps.shtml>
and <URL:http://www.anta.net/misc/nnq/nquote.shtmlon the
news.newusers.questions site, and RFC 1855 at e.g. <URL:http://
www.ietf.org/rfc/rfc1855.txt>.

Thor Kottelin
Jun 27 '08 #17
Thor Kottelin wrote:
On 23 Jun, 01:45, reporter <TruckSaf...@gmail.comwrote:
>On Jun 22, 3:50 pm, Jim Moe <jmm-list.AXSPA...@sohnen-moe.comwrote:
>> And you persist on wasting my time by not trimming you posts. You seem a
>Even though you are quite rude, I will be happy to comply if there is
some sort of a published standard for how one ought to post here.

Please see the pages <URL:http://www.anta.net/misc/nnq/ncaps.shtml>
and <URL:http://www.anta.net/misc/nnq/nquote.shtmlon the
news.newusers.questions site, and RFC 1855 at e.g. <URL:http://
www.ietf.org/rfc/rfc1855.txt>.

Thor Kottelin
Don't bother with him, Thor. He's a troll that most of the regulars in
a.w.w. have plonked. Others just don't respond to him. He has yet to
add anything of value to the newsgroup

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #18
Jukka K. Korpela wrote:
Scripsit Harlan Messinger:
>*Life* is about diplomacy.

I like your pointless babbling more than your attempts to look
philosophical (using the well-known formula of writing "Life is" and
appending random words).
It's no more pointless than your repeated tirades at people about their
breaches of Usenet behavior. It's very simple, Jukka: apply the same
standards to yourself that you apply to everyone else. How is that
pointless? It may be to no avail if you consider yourself to be exempt
from the same standards of behavior you apply to everybody else on the
planet, but it isn't pointless.
>>and clueless technical advice does not deserve any
diplomatic moves.

You apparently decided to resist the temptation to make any comment on
this remotely on-topic note, despite your quoting it. That's a common
way to collect some additional bogosity points.
Yes, I know that at the same time that you adore to criticize other
people, in an often off-topic manner, you consider yourself to be exempt
from the same thing.
Regarding the original question about a body element with empty content
being valid in HTML 4 Strict, the correct answer had been given when a
person had to post a completely wrong answer. This reflected the fact
that he does not understand what validity is (in the HTML context) at
all but just made a wild guess.

Nobody needs such guessing any more than your attacks at a person who
points out the bogosity.
Is there some reason why you should be exempt from the same kind of
attach that you launch at everyone else? What makes you think your
perpetual combativeness isn't bogus? Bogosity abounds in your posts
every time you look for the slightest excuse to leap at some innocent
person's throat, and every time you invent yet ever thinner excuses to
call someone "bogus".
If you think that the incorrectness and grossly
misleading nature of a post should be given in a manner that meets your
definition of diplomacy,
Why should you be exempt from the same expectations you have of everyone
else, you bloody, ill-mannered, egotistical hypocrite?
Jun 27 '08 #19
Jerry Stuckle wrote:
Don't bother with him, Thor. He's a troll
So, BTW is the OP, Xha Lee. He is well known as a troll at
comp.language.perl.misc.
Jun 27 '08 #20
Scott Bryce <sb****@scottbryce.comwrote:
>Jerry Stuckle wrote:
>Don't bother with him, Thor. He's a troll

So, BTW is the OP, Xha Lee. He is well known as a troll at
comp.language.perl.misc.
With all these trolls running around, I shouldn't be surprised if we
are visited by Gandalf! <g>

Matt
--
The Probert Encyclopaedia
http://www.probertencyclopaedia.com
Jun 27 '08 #21
Scripsit Chris F.A. Johnson:
>
The minimum valid page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p>

Not really. You can change
<title></title>
to
<title//
and still keep it valid.

Kids, don't do this at home, or on the www.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Sep 21 '08 #22
"your name" <yo*@company.comwrote ...
The minimum valid page is:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p>
etc., etc.

You don't need a <p>
You do need to stop spamming.
Sep 21 '08 #23
Andrew Heenan wrote:
"your name" <yo*@company.comwrote ...
>>> The minimum valid page is:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title></title>
<p>

etc., etc.

You don't need a <p>
Yes, you do.
Sep 21 '08 #24

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

Similar topics

1
by: Gordon - Adelphia | last post by:
I have a question regarding xhtml. Why, why, why does the ELEMENT <body> allow “unblocked” text. HTML does not (though, most browsers will render). Xhtml (transitional) however allows text nodes...
2
by: Starry Gordon | last post by:
I've been running some small test programs which seem to indicate something noticed in a larger script, that a function called from onLoad() in the <body> tag will not succeed in creating a window...
15
by: Frances | last post by:
<html> <head> <script> function doIt() { var list = document.forms.product; var selItem = list.options.value; ^^^^^^^ </head>
1
by: Chris Millar | last post by:
wondered if anyone could help me - i'm trying to control the value of an attribute of the BODY tag on a page. So i've got: <html> <body test="colin"> <form ...... ** content ** </form>...
1
by: Chris Millar | last post by:
wondered if anyone could help me - i'm trying to control the value of an attribute of the BODY tag on a page. So i've got: <html> <body test="colin"> <form ...... ** content ** </form>...
1
by: sloan | last post by:
If my html looks like this (page1.aspx) <HTML> <HEAD> <title>WebForm1</title> </HEAD> <body> <form id="Form1" method="post" runat="server">
8
by: Prisoner at War | last post by:
Another weekend, another project, another problem.... Why should a perfectly fine function work only half-way through when called through onClick in an anchor tag?? The text fade-in script...
3
by: PYG | last post by:
Hi everybody I have a simple question : If i use this code : <body style="font-size:24px;color:blue;"> Text in body <table> <tr><td> Text in table
6
by: Shawn | last post by:
Hello: I have the following code in a PHP file. An HTML form passes user comment data to the PHP, which then appends the user comments to the end of the HTML file on which the form is located....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
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.