473,770 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External CSS and HTML 2.0


I have been running tests on various doctypes and
found something interesting.

I set up a test page using this doctype...

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 Strict Level 1//EN">

....and put this in the head:

<link rel="stylesheet " type="text/css" href="http://www.example.com/test.css">

The page failed the W3C validator. Changing the above to...

<link rel="stylesheet " href="http://www.example.com/test.css">

....allowed the page to validate.

I already tell the browser what type of document test.css
is in my .htaccess file:

AddType 'text/css; charset=US-ASCII' .css
AddCharset US-ASCII .css
AddLanguage en-US .css

I repeated the test with HTML 4.01 strict and XHTML 1.1
pages (making the other changes needed) and it still validated.

Other than the usual Internet Explorer choking on XHTML 1.1
served as application/xhtml+xml, the HTML 2.0, HTML 4.01 strict
and the XHTML 1.1 test pages are all following the directives
in the CSS file just fine. The only quirk I found was that the
W3C CSS Validator couldn't find the CSS from the HTML/XHTML
file (but it validated when I pointed it at the CSS file).

Is there any good reason why that type="text/css" is found
in every example of using an extenal CSS that I can find?


-
Guy Macon <http://www.GuyMacon.co m/Guy Macon <http://www.GuyMacon.co m/>
Guy Macon <http://www.GuyMacon.co m/Guy Macon <http://www.GuyMacon.co m/>
Guy Macon <http://www.GuyMacon.co m/Guy Macon <http://www.GuyMacon.co m/>
Guy Macon <http://www.GuyMacon.co m/Guy Macon <http://www.GuyMacon.co m/>
Jul 25 '08
35 2372
The Troll Whisperer <Troll,Wh****** *@TrollTech.inv alidwrote:
>
"Jukka K. Korpela" <jk******@cs.tu t.fiwrote:
>>You were already warned about irritating sigs, and you are just making
them worse. This seems to be consistent with the lack of relevant
content and the presence of chaotic structure in your messages proper.

Thank you for making it clear that your future postings should be
ignored. Please keep using the same forged From field until you have a
clue. Thank you in advance.

That time of month, is it?

Here's a dime, Jukka; go buy yourself a *real* newsreader. One that can be
configured to not display sigs that are proberly delimited with the pattern
"-- " on a line by itself.
>>X-Newsreader: Microsoft Outlook Express

What an idiot you are. Using the worst possible news reader and then flaming
others because it cannot trim sigs. Moron.
I guess I must be the idiot...my newsreader, Agent, displays sigs after '--
' unless, like all newsreaders, I'm responding to the message with the sig.
Wait...that's what it's supposed to do. It's not supposed to tamper with or
edit the incoming message. Oops! I called the wrong guy an idiot. ;-)

--
Ed Jay (remove 'M' to reply by email)

Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info
Jul 25 '08 #11

The Troll Whisperer wrote:
>Here's a dime, Jukka; go buy yourself a *real* newsreader. One that can be
configured to not display sigs that are proberly delimited with the pattern
"-- " on a line by itself.
>>X-Newsreader: Microsoft Outlook Express

What an idiot you are. Using the worst possible news reader and then flaming
others because it cannot trim sigs. Moron.
To be fair, I did fail to have the proper "-- " delimiter on at least
one post -- a typo when I cut and pasted. Sorry about that.

I do agree, however, that those who object strongly to certain sigs
(and who lack the sense of humor to recognize the difference between
a regular sig and a one-time intentonal flouting of the rules in an
attempt at lighthearted humor) would be well-advised to drop Microsoft
Outlook Express and get a newsreader that has the option to not
display sigs.


--

Note to the humor impaired; Long sig used as a joke during
a discussion of long sigs. Normal sig will terurn soon.
ASCII-art stereograms:

Here are two ASCII stereograms. View with a monospace font.
To see the 3d effect, you need to focus your eyes such that
the two adjacent "X" characters at the top look like three.
Once you've done that, wait a few moments for your eyes to
get used to it, then slowly look down at the rest of the image.
Sometimes it helps to print out the pattern and look at that.

X X
.. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . .
. . . . . . .
.. . . . . . .
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
. . . . . . .
. . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
.. . . . . . . . . . . . . . . . . . . . . . .

X X

h h h h h h h h h h h h h h h h h h
t t t t t t t t t t t t t t t t
t t t t t t t t t t t t t t t t t t
p p p p p p p p p p p p p p t t
: : : : : : : : : : : : : : : : : :
/ / / / / / / / / / / / / / / /
/ / / / / / / / / / / / / / / / /
w w w w w w w w w w w w w w w
w w w w w w w w w w w w w w w w w
w w w w w w w w w w w w w w w
. . . . . . . . . . . . . . . . .
g g g g g g g g g g g g g g g g
u u u u u u u u u u u u u u u u u u
y y y y y y y y y y y y y y y y
m m m m m m m m m m m m m m m m m m
a a a a a a a a a a a a a a a a
c c c c c c c c c c c c c c c c c c
o o o o o o o o o o o o o o o o
n n n n n n n n n n n n n n n n n n
. . . . . . . . . . . . . . .
c c c c c c c c c c c c c c c c c
o o o o o o o o o o o o o o o
m m m m m m m m m m m m m m m m m
/ / / / / / / / / / / / / / /
Jul 26 '08 #12
Guy Macon wrote:

What in God's name prompted you to post /that/ sig? I don't care if my
news reader stripped it out in my reply, it was still there in your
post! Yuck! And pointless eye abuse. Don't care about bandwidth but
some surely do. Are you just trying to be annoying? It doesn't matter
what you said *above* the sig, the sig makes you look ignorant, or at
least attempting to be provocative for no purpose. I used to actually
read your posts. Now I'm just skimming over and past them. Re-think
your strategy, Guy.

--
Ed Mullen
http://edmullen.net
Why do you need a driver's license to buy alcohol when you can't drink
and drive?
Jul 27 '08 #13

Ed Mullen wrote:
>What in God's name prompted you to post /that/ sig? I don't care if my
news reader stripped it out in my reply, it was still there in your
post! Yuck! And pointless eye abuse.
A good newsreader will give you the option of stripping out .sigs
before displaying posts to the reader. This is an especially
valuable option for those who are easily annoyed by .sigs.
>Don't care about bandwidth but
some surely do. Are you just trying to be annoying? It doesn't matter
what you said *above* the sig, the sig makes you look ignorant, or at
least attempting to be provocative for no purpose. I used to actually
read your posts. Now I'm just skimming over and past them. Re-think
your strategy, Guy.
It was a one-time attempt at humor. Sorry that you didn't find it funny.

If you decide to ignore the content of my posts because one joke fell
flat for you, all I can say is that, in my opinion, you will be missing
a lot of useful information that has sigs that stay under the recognized
4-line 79 character limit. It's your choice, though.

--
Guy Macon
<http://www.GuyMacon.co m/>

Jul 27 '08 #14
Guy Macon wrote:
>
A good newsreader will give you the option of stripping out .sigs
before displaying posts to the reader. This is an especially
valuable option for those who are easily annoyed by .sigs.
You've got it wrong there. The sig is only stripped out when replying.

If it worked as you suggest, there would be no point in including a sig
since nobody would see it and there would be no need to strip it when
replying since it had already been stripped on receiving.

--
Gus
Jul 27 '08 #15
On Jul 27, 2:00*am, Guy Macon <http://www.GuyMacon.co m/wrote:
It was a one-time attempt at humor. *Sorry that you didn't find it funny.
ok kiss make up whatever. Hey what ever happened to that kook with the
really really really long signature. He use to argue with everyone.
He did a care-bear's site.

--
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Jul 27 '08 #16
On Jul 27, 4:05*am, Gus Richter <gusrich...@net scape.netwrote:
If it worked as you suggest, there would be no point in including a sig
since nobody would see it and there would be no need to strip it when
replying since it had already been stripped on receiving.
That's a mighty big assumption that everyone would stip them out.

--
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Jul 27 '08 #17
Travis Newbury wrote:
On Jul 27, 4:05 am, Gus Richter <gusrich...@net scape.netwrote:
>If it worked as you suggest, there would be no point in including a sig
since nobody would see it and there would be no need to strip it when
replying since it had already been stripped on receiving.

That's a mighty big assumption that everyone would stip them out.
I take it that English is not your first language, or you are lacking in
reading skills. Guy said that a "good newsreader will strip the sig
before displaying". I don't say it, nor assume it to be so. In fact, my
post disputes this. Guy did not say "everyone", he said "a good one".
--
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Do you stutter or are you otherwise challenged? Do you really think that
by irritating people by repeating your "crap" four times will attract
people? I may have otherwise gone to have a look.

I conclude that you are challenged since you do not properly use the (--
) but choose to irritate readers in this way as well.

--
Gus
Jul 27 '08 #18
On Jul 27, 9:43*am, Gus Richter <gusrich...@net scape.netwrote:
Do you stutter or are you otherwise challenged? Do you really think that
by irritating people by repeating your "crap" four times will attract
people? I may have otherwise gone to have a look.
Visit, don't visit. What ever you do is pretty much irrelevant to
me.

--
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Travis Newbury <http://travisnewbury.b logspot.com/Flash Crap
Jul 27 '08 #19
On 2008-07-27, Gus Richter wrote:
Guy Macon wrote:
>>
A good newsreader will give you the option of stripping out .sigs
before displaying posts to the reader. This is an especially
valuable option for those who are easily annoyed by .sigs.

You've got it wrong there. The sig is only stripped out when replying.
A good newsreader has the option to show or not show sigs when
displaying posts.
If it worked as you suggest, there would be no point in including a sig
since nobody would see it and there would be no need to strip it when
replying since it had already been stripped on receiving.

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Jul 27 '08 #20

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

Similar topics

1
1508
by: Chuck Mendell | last post by:
I am having problem with external javascripts. My OS is XP Pro. I am told to create an external javascript using a .js extension. (I did that) The external .js is very simple, containing: function a_message() { alert('I came from an external script! Ha, Ha, Ha!!!!'); } I am told to create an HTML page that accesses the .js script. (I did that).
5
37828
by: kinne | last post by:
Is it possible to pass a parameter to an external ".js" file? Kinne
1
2268
by: mb | last post by:
Hi, I picked up this JavaScript code (quiz code) at: http://javascript.internet.com/miscellaneous/multiple-choice-quiz.html and modified it (and may have deleted some line I shouldn't have) so that it looks like this on my web site: http://www.goalseek.net/Scripts/qa_XL_History.htm
4
3175
by: dennise9 | last post by:
My exeternal JS works fine when the call is placed in the page head or body. But if I call the same javascript from a (clicked) text link on the page, the script throws a JS error when it executes. Help! I can't figure this out. The external JS file is "members.js". Here's the code:
0
1237
by: dmcomer | last post by:
In the context of parsing and preserving HTML tags in an XSL stylesheet, I understand the difference between <xsl:value-of select="body"/> and <xsl:copy-of select="body> However, I am trying to, with a twist on the above, pass the copy-of string to an external XSLT function. That is, in .NET 2.0, I am attempting something like the following (not that .NET applies to the XSL below, but just so you know the environment context):
0
2026
by: =?Utf-8?B?c25naWxi?= | last post by:
I am having 3 issues with the WebBrowser control which may all be related. The HTML for the page is the standard Weather Magnet from weather.com. The actual HTML is at the bottom of this page. Issue 1: I am opening a page in the control in the development environment and the document comes up correctly. But, when I click a link in the resulting document, an external IE instance comes up with the requested page. I have see reference to...
5
3698
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
3
1856
by: RICHARD BROMBERG | last post by:
I have a simple program to test using an external .js file. This external file contains some functions that I need to call from several html programs. The program as written below works fine. 1. <html> 2. <head> 3. <meta http-equiv="Content-Language" content="en-us"> 4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5. <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> 6. ...
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10254
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8929
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
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
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.