473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 2209
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**********************@z14g2000cwz.googlegroups .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*****@speakeasy.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**********************@z14g2000cwz.googlegroups .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.googlegroups.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**********@QuasiAnon.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*****@invalid.invalid> in
news:5t********************************@news.spart anicus.utvinternet.ie:
Quasimido CSS <Qu**********@QuasiAnon.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**********@QuasiAnon.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
Spartanicus wrote:
Quasimido CSS <Qu**********@QuasiAnon.com> wrote:
[snip argument about trying things until something works]


No need to potentially further confuse the OP by
suggesting a trial and error method.


Don't worry about me, I know the specifications. I posted because I
wanted to find out what HTML Tidy meant by this nonsensical warning
when the code was clearly valid.

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

Sep 4 '05 #11
"Safalra" <us****@safalra.com> wrote:
No need to potentially further confuse the OP by
suggesting a trial and error method.


Don't worry about me, I know the specifications.


Sorry about that, I didn't look who the OP was, it should have read
"other readers" instead of "the OP".

--
Spartanicus
Sep 4 '05 #12

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

Similar topics

5
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...
7
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...
3
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...
20
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...
1
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...
4
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...
0
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...
0
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...
0
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.