D
dorayme
"Jukka K. Korpela said:I have much sympathy for idiots, but not
that much for people who just act like idiots.
Does this mean our partnership is headed for a rocky road?
"Jukka K. Korpela said:I have much sympathy for idiots, but not
that much for people who just act like idiots.
From: "Jukka K. Korpela said:Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=original
Not very useful, but useful. Knowing whether there is an error or
not is more information than not knowing whether there are errors
or not.
In my wild youth, I wrote major parts of a Pascal compiler,
including error processing, and I still remember it was rather
difficult to be correct and helpful at the same time.
On the contrary. A utility that reports mistakes (even on a
"There is an error" basis, though naturally I prefer more exact
reports) is often essential, but it is not a _substitute_ for
learning and understanding. Rather, an incentive and tool for them.
Compare this with spelling checkers.
if Word flags an entire sentence in a manner that effectively
says "hey, this went over my head, the sentence is too
complicated", I'm grateful for the information and don't require
it to tell _where_ its analysis broke. Rather, I read the
sentence carefully and then usually reformulate it, typically
breaking it to two sentences.
All human people should learn more every day to the extent they
can.
These days, you can easily use CSS to set the relevant
properties (margin-top and margin-bottom for applicable elements)
to zero, with the usual CSS caveats of course.
In this context, "net" (better written as "NET") means "null end
tag". When you have "<p /", you have a NET-enabling start tag,
i.e. a start tag that makes the next "/" act as the end tag for
the element that was opened. It's a nice idea in SGML, but it was
never implemented in HTML browsers, even though it was formally
part of HTML up to and including HTML 4.01.
By using <hr>.
Alternatively, by setting a top or bottom border for an element.
There are other techniques like images and background images too,
Let me see if I can find the documentation for that ...
<http://www.w3.org/TR/CSS21/box.html>
shows only how to do it in CSS, not directly in the element, so
that's useless for me because not all browsers support CSS, in
particular the only browser available to me for testing over VT100
dialup (lynx) into unix shell doesn't support CSS.
<http://www.thescripts.com/forum/thread154512.html>
also refers to CSS, but at least it shows doing something directly
in the individual element, so let me give it a try ... No, it
doesn't work. Here's the HTML source:
Anything I haven't yet included might be found
<a href="http://merd.sourceforge.net/pixel/language-study/syntax-across-languages.html">here</a>
in much terser form but still perhaps useful if you then use Google to find
the documentation for the keyword cited there.
<p style="margin-top: 0; padding-top: 0"></p>
<em>**(I don't want a blank line here, just a forced newline.)**</em>
Also, the original perl cookbook sourcecode and partial translations to
several other languages can be found
<a href="http://pleac.sourceforge.net/">here</a>,
..
And here's how it appears on-screen.
Anything I haven't yet included might be found here in much terser
form but still perhaps useful if you then use Google to find the
documentation for the keyword cited there.
**(I don't want a blank line here, just a forced newline.)** Also, the
original perl cookbook sourcecode and partial translations to several
other languages can be found here, ...
So what do I need to do there to get rid of that blank line?
Use said:Also is there any way to prevent the blank line after the pre element here?
.. So suppose you
enter two numbers, with a space between them, such as</p>
<pre>
42 69
</pre>
<pre>
**(I do *not* want a blank line here!!)**
on a single line of input?
Lisp will read the 42, and print it out on a new line.
That's disgusting. I've tried to purge my documents of all
accidental use of that crock, using > whenever I want that
character to *appear* in the display of the WebPage.
So on another pending topic: Do you know any way to force a line
break without causing a blank line?
From: "Andy Dingley said:So close your elements with an end tag.
Quote your attributes.
Your code examples are one of the few cases when <pre> might well
be appropriate, ...
It does no such thing, nor does <p>. It causes the content to be
rendered as a block within a box, and CSS might say that there's some
margin space after this. That's a lot different from there being "a
blank line afterwards". There is no line, there's only space after the
line before.
Learn some trivial CSS, ...
<br />
From: "Jonathan N. Little said:Anything in recent history, Yeah 10-year old browser will have trouble
but who is using one?
Now unfortunately IE does not support "sibling selectors"
If I do that, validation fails. Should I just ignore validation failure??
Is there any way to have a code example like that with both the
preceding and following text directly adjacent to it, no blank line
either before or after the code example?
robert said:I'm using the only Web browser available here. If you don't like
it, why don't you come over here and show me something better that
also works on FreeBSD Unix over VT100 dialup.
That's irrelevant to me because IE doesn't work over VT100 dialup.
robert said:[Omitted attributions for Jukka replaced] He spake, robert maas answered, Jukka replied:Not very useful, but useful. Knowing whether there is an error or
not is more information than not knowing whether there are errors
or not.
Well that depends on whether you consider the purpose of a
validator to be:
-1- Show the author where the error is, and explain what's wrong,
so that the author can immediately fix it.
-2- Flag the entire WebPage as INVALID, with no idea where the
error actually is, so the author must post to a newsgroup
asking for help, and spend several days before a single error
can be fixed.
I'll agree the W3C validator accomplished -2- in this case.
Well so-far all I've learned is that:
While <tag /> is a perfectly acceptable non-container XML tag, it's
totally invalid as such in SGML, generating completely different
longuange semantics, therefore must be totally avoided in any
WebPage that is supposed to be transitional between HTML and XHTML.
The br element is defined in a way that's totally incompatible
between HTML and XHTML, so must be completely avoided in
transitional WebPages.
There's a second validator that is very much different from the W3C
validator and can help diagnose errors where the W3C validator gave
an error apparently unrelated to anything wrong in the syntax.
I have the same problem with movie titles, where indb.com maps from
title to movie, and from actor in movie to all movies that starred
that actor, but has no way to map from concept to movie title.
For example for years I remembered a movie that had somebody go
back in time and almost collide with themselves making the return
trip, and then at the end the time machine is damaged causing the
whole movie to repeat at hyper-speed. I couldn't find anyone who
knew what that movie was. Finally a few years ago the movie
appeared on TV again, and I was able to find the title: "Journey to
the Center of Time".
Ah, thanks for telling me that NET is an abbreviation, nothing to
do with Visual Basic .NET, or InterNet, or net profit, etc., and
for telling me what the abbreviation stands for. That's a start.
Now I still don't know why it's called "null" and why it's called
"end tag" and why it really acts like a start tag instead of a end
tag, etc.
That violates what I learned in the "Web Design" class.
The instructor required two things:
- Set up header (doctype etc.) as transitional.
- Never use an opening tag without the matching close tag.
As you point out, neither br nor hr is compatible with those two
rules.
If I do that, validation fails. Should I just ignore validation failure??
Is there any way to have a code example like that with both the
preceding and following text directly adjacent to it, no blank line
either before or after the code example?
That starts a NET, which is **not** the semantics I want!!
Well so-far all I've learned is that:
While <tag /> is a perfectly acceptable non-container XML tag,
Correct.
it's totally invalid as such in SGML, generating completely different
longuange semantics, therefore must be totally avoided in any
WebPage that is supposed to be transitional between HTML and XHTML.
The br element is defined in a way that's totally incompatible
between HTML and XHTML, so must be completely avoided in
transitional WebPages.
That's not a valid charset to use for posting to newsgroups.
Could you please use US-ASCII or ISO 8859-1 (Latin 1) instead?
Well that depends on whether you consider the purpose of a
validator to be:
-1- Show the author where the error is, and explain what's wrong,
so that the author can immediately fix it.
-2- Flag the entire WebPage as INVALID, with no idea where the
error actually is, so the author must post to a newsgroup
asking for help, and spend several days before a single error
can be fixed.
Well so-far all I've learned is that:
While <tag /> is a perfectly acceptable non-container XML tag, it's
totally invalid as such in SGML, generating completely different
longuange semantics, therefore must be totally avoided in any
WebPage that is supposed to be transitional between HTML and XHTML.
which are the correct tags in said:There's a second validator that is very much different from the W3C
validator and can help diagnose errors where the W3C validator gave
an error apparently unrelated to anything wrong in the syntax.
The usual caveat is that it doesn't work, plain and simple.
The instructor required two things:
- Set up header (doctype etc.) as transitional.
- Never use an opening tag without the matching close tag.
So on another pending topic: Do you know any way to force a line
break without causing a blank line? Do you know any way to avoid a
blank line at the end of a pre block?
From: John Hosking said:"Several thousand lines after where the actual error happened" would
indeed be a pain. But from what I saw in your OP and subsequent posts,
that wasn't the actual case. In fact, all the action occurred within
Line 1353.
Start tag: required, End tag: forbidden
XHTML: <br/> and <hr/> or <hr></hr>
http://www.w3.org/TR/xhtml1/#h-4.6
XHTML Appendix C: <br /> and <hr />
http://www.w3.org/TR/xhtml1/#C_2
it *is* a start-tag *itself*, but it enables a null end tag.
I don't think he used any characters which the VT100 would mangle, ...
If this is exactly what she said (i.e., that's *all* she said
about it, dogmatically), then she left out some important info.
Transitional is for legacy documents not yet cleaned up to
validate as strict.
I don't know when you had your course,
but there *was* a time when specifying a transitional doctype was
good advice (or at least, widely recommended; Jukka or BTS or
somebody will have the details).
= Message-ID: said:For *new* pages, or pages you are actively maintaining, go with HTML
4.01 strict, unless you have a bona fide reason to use XHTML.
Sure they are. You're letting yourself get confused.
I had to be careful *never* to click on any link to anything that
might have images and take another 20 minutes to download. Of
course I cancelled the service before the free month was finished,
but AT&T insisted on billing me for the second month, and refused
to totally retract the charges, and I refused to pay even the
reduced amount, so they cut off my long distance service, which has
remained cut off to this day. Anyway, I've been text-only at home
ever since.
Feel free to tell how to use BR or HR in HTML/XHTML transitional documents.
robert said:Start tag: required, End tag: forbidden
It doesn't say anything about empty tag. Allowed or forbidden??
element starts with a tag beginning with said:9.3.4 Preformatted text: The PRE element
it doesn't say how to suppress the blank line at the end of each PRE element.
Also this entire section doesn't say which doctype it's applicable to.
For example, is it applicable to "transitional" or not?
Actually it looks like you have provided no links to HTML/XHTML
transitional at all.
Include a space before the trailing / and > of empty elements, e.g.
<br />, <hr /> and <img src="karen.jpg" alt="Karen" />. Also, use the
minimized tag syntax for empty elements, e.g. <br />, as the
alternative syntax <br></br> allowed by XML gives uncertain results in
many existing user agents.
Well, per that, I was doing exactly the right thing!!
Why are you all complaining???
Hmm, I've started doing <p></p> instead, i.e. no space between the
opening and closing paragraph delimiters. Is that wrong??
vertical spacing in other ways than extraneous said:She wanted all our *new* documents to be transitional, so they'd
still "work" in existing Web browsers, yet they'd already work in
future XML-based Web browsers.
It had nothing to do with any legacy
documents. If you look at the class assignments (URL earlier
above), one very early assignment was to make a template which
would then be copied as the starting point for all future
assignments which would all be brand-new from-scratch (well
from-template) pages. Please take a look at that template and tell
me if there's anything wrong with using it for brand-new documents.
When was that?
Well if you think you can find a way to use a br or hr without
violating one of these rules:
Start tag: required, End tag: forbidden
INCORRECT: unterminated empty elements <br><hr>
Feel free to tell how to use BR or HR in HTML/XHTML transitional documents.
From: "Steve Pugh said:First you need to ask yourself if you are writing XHTML or HTML.
Where and how you close elements varies between the two.
So you must be 100% consistent to the rules of whichever one you
are using. Starting with inclduing either an HTML or XHTML doctype.
In XHTML use <br /> and in HTML use <br>. That's it. That's how to
create a valid and working line break in the two languages.
From: "Steve Pugh said:Correct.
It has a different (but valid) use in HTML. However that use has never
been supported by browsers. It should be avoided in HTML for a mix of
practical and technical reasons.
The only thing that comes close to a transition between HTML and
XHTML is Appendix C of the XHTML spec which recommends the use of
<br /> for empty elements ...
From: "Jukka K. Korpela said:If you use a speech browser, or switch off CSS support, or use a
text-only browser, you must be interested in the content of pages
only and not their graphic excellence.
That's simply wrong advice.
Both.
The instructor in the "Web Design" class required us to write
HTML/XHTML transitional, so it'd work in existing HTML-based Web
browsers, but also would continue to work with future XML-based Web
browsers. More recently somebody said that's impossible to achieve,
the instructor lied. I'm starting to believe the latter.
The instructor insisted we write all our Web pages to be consistent
with both. For example, we can't just say <p> between paragraphs.
Instead we must say <p> at start of paragraph and </p> at end of
paragraph. Doesn't that work in both HTML and XHTML??
The instructor insisted we start every document like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/html4/loose.dtd">
And in transitional HTML/XHTML I can't do either?
How can I write Web pages that work with old browsers, text-only
browsers, brand-new XML-based browsers, etc., rather than work with
this browser but not with that other browser?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.