473,657 Members | 2,490 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 2246
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
10005
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 suggest that multiple stylesheets could be linked to a single page, but didn't give the details as how...
7
5104
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 One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla:...
3
14511
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 external symbol DllCanUnloadNow
20
3220
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 information needed for execution in its execution environment." What I'm wondering is what exactly...
1
8112
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. Does anyone has an idea on how to make this code compile in .Net ? Thanks, Joannes Vermorel
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
4881
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
2552
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, when I use /MT, linking the static excutable completely dies (problems resolving symbols in the STL,...
0
2959
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 code, I am facing some errors. I have installed PCRE and am using Visual C++ 6.0 in 32-bit mode. The
0
8420
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
8324
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
8740
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
4173
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...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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.