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
On Jul 28, 7:34*am, Guy Macon <http://www.GuyMacon.co m/wrote:
I take it that English is not your first language, or that you are
lacking in reading skills....
Why does everyone have to start a conversation with an insult.

Can't we all just be friends...

--
Travis
Flash Crap: http://travisnewbury.blogspot.com
Jul 28 '08 #31
On Jul 28, 2:24*am, Gus Richter <gusrich...@net scape.netwrote:
Thinking straight, thank you. More than I can say about you. Trolling is
what you're into. What would a Googlegrouper like you and Chris know
about a good newsreader? How about using one?
I (and others I assume) access Usenet behind a corporate firewall that
does not allow me to use a news reader. So rather than sometimes
using one (when accessing fro home or some wifi location) and not
using it when I am at the office, I decided to just use google groups
all the time. Using one has nothing to do with "knowing about a good
reader"

--
Travis
Flash Crap: http://travisnewbury.blogspot.com

--
Travis
Flash Crap: http://travisnewbury.blogspot.com
Jul 28 '08 #32
Guy Macon wrote:
>
The phrase "Usenet Standards" implies
an RFC or other official document. The phrase "Usenet has standards"
implies a long tradition of clueful Usenet users doing something the
same way and thus creating a de-facto standard.
You say that "Usenet has standards" and when referring to those
standards you must call them "Usenet Standards". The different
implications are in your mind.

The word that you're searching for is "convention ". Since Usenet has no
Stipulated Standards, Generally Accepted Standards or De-facto Standards
may be understood to exist due to generally accepted customs resulting
from conventional agreed-upon practices.

--
Gus
Jul 28 '08 #33
On Jul 28, 1:14*pm, Gus Richter <gusrich...@net scape.netwrote:
The phrase "Usenet Standards" implies...
You say that "Usenet has standards"...
Boys, boys, boys... Isn't this a rather silly argument?

--
Travis
Flash Crap: http://travisnewbury.blogspot.com
Jul 28 '08 #34
Travis Newbury <tr***********@ gmail.comwrote in message:
b8************* *************** **...legroups. com,
On Jul 28, 1:14 pm, Gus Richter <gusrich...@net scape.netwrote:
>>The phrase "Usenet Standards" implies...
You say that "Usenet has standards"...

Boys, boys, boys... Isn't this a rather silly argument?
Yup, and that's also a USENET standard...

--
Red
Jul 28 '08 #35
On 28 Jul 2008, "Andrew Heenan" <fi**@will.comw rote:
"Tim Streater" <ti**********@d ante.org.ukwrot e...
>Here's another thread replete with devastating brilliance and insight.

Your eyes must be MUCH better than mine ...
... Unless you are hallucinating?

I was just about to nominate it for "Boring Thread of the Day"
You have to read between the lines. That's why they have the "line-height"
attribute in css which allows even fatheads to slip thru.

--
Neredbojias
http://www.neredbojias.net/
Great sights and sounds
Jul 28 '08 #36

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
9453
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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...
1
7451
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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...
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.