473,583 Members | 3,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking to external stylesheets

I've always linked to external stylesheets using a line like:

<link rel="stylesheet " href="style.css " type="text/css">

I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:

"Access: [13.2.1.2]: Metadata missing (link element)
Priority 2
Cause:
If metadata is specified via the link element its value should be a
URI. It should not be used to access style sheets."

This makes no sense to me whatsoever - the HTML 4.01 specification
shows <link> being used to access external stylesheets. Also, from
where does this guideline originate, as it is more specific than WCAG
13.2?

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Aug 19 '05 #1
11 2243
Once upon a time *Safalra* wrote:
I've always linked to external stylesheets using a line like:

<link rel="stylesheet " href="style.css " type="text/css">

I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:

"Access: [13.2.1.2]: Metadata missing (link element)
Priority 2
Cause:
If metadata is specified via the link element its value should be a
URI. It should not be used to access style sheets."

This makes no sense to me whatsoever - the HTML 4.01 specification
shows <link> being used to access external stylesheets. Also, from
where does this guideline originate, as it is more specific than WCAG
13.2?


Use of HTMLTidy as a validator has never maked sence to me.

--
/Arne
My "widget" site: http://hem.bredband.net/arnel/
Top posters will be ignored. Quote the part you
are replying to, and don't quote signatures!
Aug 19 '05 #2
On 19 Aug 2005 11:41:02 -0700, "Safalra" <us****@safalra .com> wrote or
quoted :
<link rel="stylesheet " href="style.css " type="text/css">


I just validated with HTMLTidy a link like this;

<link href="mindprod. css" type="text/css" rel="stylesheet ">
<meta http-equiv="Content-Style-Type" content="text/css">

Without complaint.

I asked it to convert to XHML and it converted it like this:

<link href="mindprod. css" type="text/css" rel="stylesheet " />
<meta http-equiv="Content-Style-Type" content="text/css" />

again without complaint.

Unfortunately I don't know which version of HTMLTidy I have. It came
bundled with HTMLValidator 7. It is the sourceforge HTMLTidy.

Aug 20 '05 #3
begin quotation
from Safalra <us****@safalra .com>
in message <11************ **********@z14g 2000cwz.googleg roups.com>
I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:


HTML Tidy is not a validator. Attempting to use it as one will produce
less than satisfactory results, at best.

--
___ _ _____ |*|
/ __| |/ / _ \ |*| Shawn K. Quinn
\__ \ ' < (_) | |*| sk*****@speakea sy.net
|___/_|\_\__\_\ |*| Houston, TX, USA
Aug 20 '05 #4
Safalra wrote:

<link rel="stylesheet " href="style.css " type="text/css">

I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:

"Access: [13.2.1.2]: Metadata missing (link element)
Priority 2
Cause:
If metadata is specified via the link element its value should be a
URI. It should not be used to access style sheets."

Apparently they are encouraging the use of:
<style type="text/css">
@import "styles.css ";
</style>

I cannot say if this is a good idea or not.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 20 '05 #5
Shawn K. Quinn wrote:
begin quotation
from Safalra <us****@safalra .com>
in message <11************ **********@z14g 2000cwz.googleg roups.com>
I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:


HTML Tidy is not a validator. Attempting to use it as one will produce
less than satisfactory results, at best.


I know. I just use it to check I haven't forgotten to close elements (a
mistake I frequently make when writing pages) - looking at little icon
it puts at the bottom of the Firefox window (a tick if it likes the
document, an exclamation mark or cross if something is wrong) is far
more convenient for me than going to the w3c validator and reading
'This page is valid HTML 4.01 strict'.

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Aug 20 '05 #6

just a newbie here...
i've been trying to validate xhtml 1 strict, obviously different from your html 4.01
but

"Safalra" <us****@safalra .com> in news:1124476862 .198767.164530
@z14g2000cwz.go oglegroups.com:
I've always linked to external stylesheets using a line like:

<link rel="stylesheet " href="style.css " type="text/css">
you might need to add title="whatever " (is title a "link element"?)
and
last closing bracket might need slash?
css" />
I recently installed the HTMLTidy extension for Firefox and it objected
to that line, saying:

"Access: [13.2.1.2]: Metadata missing (link element)
Priority 2
Cause:
If metadata is specified via the link element its value should be a
URI. It should not be used to access style sheets."

This makes no sense to me whatsoever - the HTML 4.01 specification
shows <link> being used to access external stylesheets. Also, from
where does this guideline originate, as it is more specific than WCAG
13.2?


i downloaded and use CSE HTML Validator Lite v6.5
and also use upload version of w3 validators.

Sep 1 '05 #7
Quasimido CSS <Qu**********@Q uasiAnon.com> wrote:
i've been trying to validate xhtml 1 strict, obviously different from your html 4.01
but

<link rel="stylesheet " href="style.css " type="text/css">
you might need to add title="whatever "


No he doesn't.
(is title a "link element"?)
The title *attribute* can be used with the link element
http://www.w3.org/TR/html4/present/styles.html#h-14.3.2
and
last closing bracket might need slash?
css" />
No again. I question the wisdom of trying to give advice when you don't
know the answer yourself.
i downloaded and use CSE HTML Validator Lite v6.5


Oh dear. CSE is not a validator.

--
Spartanicus
Sep 1 '05 #8
Spartanicus <in*****@invali d.invalid> in
news:5t******** *************** *********@news. spartanicus.utv internet.ie:
Quasimido CSS <Qu**********@Q uasiAnon.com> wrote:
i've been trying to validate xhtml 1 strict, obviously different from
your html 4.01 but

<link rel="stylesheet " href="style.css " type="text/css">


you might need to add title="whatever "


No he doesn't.
(is title a "link element"?)


The title *attribute* can be used with the link element
http://www.w3.org/TR/html4/present/styles.html#h-14.3.2
and
last closing bracket might need slash?
css" />


No again. I question the wisdom of trying to give advice when you
don't know the answer yourself.


it's not "advice". no one answered a question, i offered something to *try*. I've come
across solutions by beginning with an approach, then editing further. all of this stuff is
*very* unpredictable.

does that tidy metadata message suggest anything to you? (I've never tried tidy. but i'd
expect it to give line and char location for its err messages. if so, maybe op could
associate tidy's message with the text on that line?)
i downloaded and use CSE HTML Validator Lite v6.5


Oh dear. CSE is not a validator.


could be. they chose that name, so it's good to know if they're being misleading. the
software finds typos, unclosed phrases, and does similar useful stuff. It's fast, then i
use the online upload "validator" (or whatever *it* really is :-) )
Sep 4 '05 #9
Quasimido CSS <Qu**********@Q uasiAnon.com> wrote:
and
last closing bracket might need slash?
css" />


No again. I question the wisdom of trying to give advice when you
don't know the answer yourself.


it's not "advice". no one answered a question, i offered something to *try*. I've come
across solutions by beginning with an approach, then editing further. all of this stuff is
*very* unpredictable.


If by "all of this stuff" you are referring to HTML then no it isn't
"*very* unpredictable". This issue is clearly defined in specifications,
all one needs to do to find out about correct syntax is to read these
specifications. No need to potentially further confuse the OP by
suggesting a trial and error method.

--
Spartanicus
Sep 4 '05 #10

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

Similar topics

5
10002
by: Don G | last post by:
Is it possible to link multiple stylesheets to a single web page? I have an overall stylesheet for my entire site, but there are a few pages with a minor differences. I originally had these as inline styles, but I would like to move them to external stylesheets, if possible. I did some Google searches, and I found links that seemed to...
7
5096
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting normal functions in header files results in multiple definition errors even when include guards are used. -- STH Hatton's Law: "There is only...
3
14504
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL G:\NewUIPackers1\drivers\Unser\bin\WIN32\DEBUG\PPKAW1UI.dll .... LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored UIDLL.def : error LNK2001: unresolved...
20
3213
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external references to functions and objects not defined in the current translation. All such translator output is collected into a program image which contains...
1
8108
by: Joannes Vermorel | last post by:
I am currently trying to port a small open source scientfic library written in C++ to .Net. The code (including the VS solution) could be found at http://www.vermorel.com/opensource/selfscaling.zip My problem is that when I try to compile the library I got a list of linking error messages. I am not a specialist of porting C++ code to .Net....
4
6400
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the library: http://www.apache.org/dist/xml/xerces-c/binaries/xerces-c_2_7_0-windows_2000-msvc_60.zip
0
4877
by: Adam Clauss | last post by:
I have managed C++ library (is bridging between a Win32 .dll and a C# application). All was well when compiled under VS2003, but I am running into a series of linking errors when compiling against VS2005. They all/mostly seem to be within the STL. Any idea what might cause something like this? Linking errors follow. ---
0
2548
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when using the /MT compilation option. Our debug solution's /MTd flag works fine and using /MD also seems to work ok. For some reason I can't fathom,...
0
2952
by: dotyet | last post by:
Hi Everyone, I am trying to build a DB2 UDB UDF which can perform regex over the table data. The user defined function will call an external .dll file to do the task. I am referring to the following link for doing so: http://www.ibm.com/developerworks/db2/library/techarticle/0301stolze/0301stolze.html While linking the below mentioned...
0
7896
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...
0
7828
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...
0
8329
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7936
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
8197
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
3847
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2335
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
1436
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1160
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.