473,396 Members | 1,755 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,396 software developers and data experts.

Anchor with TYPE attribute

Is there any *practical* use of writing, say,

<a href="book.pdf" type="application/pdf">

with a TYPE attribute?

--
Top-posting.
What's the most irritating thing on Usenet?
Aug 25 '08 #1
23 1636
Andreas Prilop <pr********@trashmail.netwrites:
Is there any *practical* use of writing, say,

<a href="book.pdf" type="application/pdf">

with a TYPE attribute?
If you do, you can use CSS to mark up pdf links differently from other
links.

a[type=application/pdf] {
before: url("pdf-image.png");
}

For instance.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Aug 25 '08 #2
Andreas Prilop wrote:
Is there any *practical* use of writing, say,

<a href="book.pdf" type="application/pdf">

with a TYPE attribute?
Not much, but in addition to potential use in styling (with attribute
selectors, not supported by IE 6), they might be used for site management
e.g. to find all links to PDF files. Of course this requires software that
pays attention to such attributes.

Moreover, on Firefox and relatives, if the user right-clicks on a link and
selects "Properties", he will see information about the media type.

So not much, really.

Yucca

Aug 25 '08 #3
In article
<Pi******************************@s5b004.rrzn.un i-hannover.de>,
Andreas Prilop <pr********@trashmail.netwrote:
Is there any *practical* use of writing, say,

<a href="book.pdf" type="application/pdf">

with a TYPE attribute?
Yes: <http://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/>.

--
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>
Aug 26 '08 #4
Sander Tekelenburg wrote:
In article
<Pi******************************@s5b004.rrzn.un i-hannover.de>,
Andreas Prilop <pr********@trashmail.netwrote:
>Is there any *practical* use of writing, say,

<a href="book.pdf" type="application/pdf">

with a TYPE attribute?

Yes: <http://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/>.
Interesting page, Sander.

I realize the page is a bit old and so you may not want to change it,
but since it *is* on the WWW (and you're pointing to it in 2008), maybe
you'd like to consider a few of my remarks, respectfully submitted:

1. It seems like a cool idea to me for you to point to a list of MIME
types. I guess this would be the place:
<http://www.iana.org/assignments/media-types/>. Or maybe there's a
better list somewhere. (Assuming "MIME types" is really the appropriate
term. I see e.g. <http://en.wikipedia.org/wiki/Internet_media_type>.)

2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

3. The word "known" is missing an "n". Search for "kown".

I'm still poking around the site and, while I see it's a bit old, it
looks interesting. (BTW, I wish more Web authors would so
conscientiously date their publishings.)

HAND.
--
John
Possessive "its" has no apostrophe. Even on the Internet.
Pedants could rule the world and make it a better place, if the rest of
you would just *understand*.
Aug 26 '08 #5
On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
Sander Tekelenburg wrote:
[...]
2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .
No, dependant is acceptable, as probably a UK variant since it is more
like French.

It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.

Many of those optional variant UK spellings are basically French.
"dependent" and "advertize" are closer to the original Latin and Greek
respectively.
Aug 26 '08 #6

Ben C wrote:
>probably a UK variant
>variant UK spellings
I tend to think of the UK spelling as being the standard, and the
US as being the variant -- and I was born and raised in the USA.
--
Guy Macon
<http://www.GuyMacon.com/>

Aug 26 '08 #7
On 2008-08-26, Guy Macon <httpwrote:
>
Ben C wrote:
>>probably a UK variant
>>variant UK spellings

I tend to think of the UK spelling as being the standard, and the
US as being the variant -- and I was born and raised in the USA.
I say "variant" UK spellings because dependent and advertize are both
also correct in UK English and in my opinion preferred.
Aug 26 '08 #8
On 26 Aug, 15:07, Guy Macon <http://www.GuyMacon.com/wrote:
I tend to think of the UK spelling as being the standard, and the
US as being the variant -- and I was born and raised in the USA.
There are (largely) two sorts of divergent spellings:
* 17th century spellings that the US has preserved and the UK has
shifted.
* Webster's fiddling 8-(
Aug 26 '08 #9
Guy Macon wrote:
I tend to think of the UK spelling as being the standard, and the
US as being the variant -- and I was born and raised in the USA.
In most cases where US and UK usage of English differs, the US version
is often (perhaps usually) closer to the original. I suspect this is
because the US was more isolated than the UK for much of its history.

British English has always been strongly influenced by our European
neighbours, and in the past, colonies.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Aug 26 '08 #10
Ben C wrote:
On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>Sander Tekelenburg wrote:
[...]
>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.
The OED distinguishes between the noun, "dependant, dependent" and the
adjective, "dependent".
It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.
In UK English and in US English only "advertise" is standard. OED only
shows "advertize" as an "also-found-as" in the "advertise" article, in
the same manner as "aduertyse" is given as one. Merriam-Webster
unabridged says "advertize" is a variant spelling.
>
Many of those optional variant UK spellings are basically French.
"dependent" and "advertize" are closer to the original Latin and Greek
respectively.
The "-ise" in "advertise" came from the French infix "-iss-" [is] found
in some -ir verbs (likewise, "choisir", "finir"), unlike most English
"-ize/-ise" suffixes, at least a few of which came from the French verb
ending "-iser" [ize], and have the Greek origin of which you wrote.
Aug 26 '08 #11
Ben C wrote:
On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>Sander Tekelenburg wrote:
[...]
>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.
I'm used to the variations exemplified by "color"/"colour" and
"advertise"/"advertize", but I'm not used to "-ent"/"-ant" variations.
Can you provide some other examples of that?
--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project: http://improve-usenet.org
Need a new news feed? http://blinkynet.net/comp/newfeed.html

Aug 26 '08 #12
On 2008-08-26, Harlan Messinger <hm*******************@comcast.netwrote:
Ben C wrote:
>On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>>Sander Tekelenburg wrote:
[...]
>>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.

The OED distinguishes between the noun, "dependant, dependent" and the
adjective, "dependent".
I don't have an OED (spent the money on a new car instead), but checked
the Collins dictionary.

It allows either spelling for the adjective, but only "dependant" for
the noun.

cf. pendant (not pendent) for something you hang around your neck. Also
a noun. Not to be confused with pedant.
>It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.

In UK English and in US English only "advertise" is standard. OED only
shows "advertize" as an "also-found-as" in the "advertise" article, in
the same manner as "aduertyse" is given as one. Merriam-Webster
unabridged says "advertize" is a variant spelling.
The Collins dictionary also says advertize is "U.S. sometimes".
>Many of those optional variant UK spellings are basically French.
"dependent" and "advertize" are closer to the original Latin and Greek
respectively.

The "-ise" in "advertise" came from the French infix "-iss-" [is] found
in some -ir verbs (likewise, "choisir", "finir"), unlike most English
"-ize/-ise" suffixes, at least a few of which came from the French verb
ending "-iser" [ize], and have the Greek origin of which you wrote.
In that case it sounds like it should be "advertise", even for someone
who writes "burglarize" or "bowdlerize".
Aug 26 '08 #13
Tue, 26 Aug 2008 08:45:32 -0500 from Ben C <sp******@spam.eggs>:
It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.
In US English, "advertize" is plain wrong and "advertise" is the only
acceptable spelling.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Aug 26 '08 #14
Tue, 26 Aug 2008 17:46:44 +0100 from Steve Swift
<St***********@gmail.com>:
In most cases where US and UK usage of English differs, the US version
is often (perhaps usually) closer to the original.
Correct. All or most of those -ize, -ise verbs verbs come from Greek
verbs in -izo, so the -ise spelling is further from the original. hat
doesn't mean they're wrong in the UK, of course.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Aug 26 '08 #15
On 2008-08-26, Stan Brown <th************@fastmail.fmwrote:
Tue, 26 Aug 2008 08:45:32 -0500 from Ben C <sp******@spam.eggs>:
>It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.

In US English, "advertize" is plain wrong and "advertise" is the only
acceptable spelling.
I think after Harlan's post that advertize is pretty much wrong in UK
English too.
Aug 26 '08 #16
On 2008-08-26, Blinky the Shark <no*****@box.invalidwrote:
Ben C wrote:
>On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>>Sander Tekelenburg wrote:
[...]
>>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.

I'm used to the variations exemplified by "color"/"colour" and
"advertise"/"advertize", but I'm not used to "-ent"/"-ant" variations.
Can you provide some other examples of that?
Pendant, repellent, propellant, ascendent, descendent.

Those are the spellings I would use (for no particular reason-- using
"repellent" but "propellant" is inconsistent). But pendent, repellant,
propellent, ascendant and descendant are all allowed and mean the same I
believe.

I don't know if there's any US/UK bias to these though.
Aug 26 '08 #17
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
Sander Tekelenburg wrote:
[...]
2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.

It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.
You might care to "Improve Answer" at

<http://wiki.answers.com/Q/What_is_the_correct_spelling_of_advertize>

with some references etc.

If you type into Google:

is "centre" correct?

You get a list of links.

If you type into Google

is "advertize" correct?

you get at the top of a list of links,

Did you mean: is "advertise" correct?**

So the variant here is causing more than usual eyebrow raisings.

--
dorayme
Aug 26 '08 #18
Blinky the Shark wrote:
I'm used to the variations exemplified by "color"/"colour" and
"advertise"/"advertize", but I'm not used to "-ent"/"-ant" variations.
Can you provide some other examples of that?
Then there's grey (UK) vs. gray (US). Now we're really into a gr{e,a}y area.
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Aug 27 '08 #19
Steve Swift wrote:
Blinky the Shark wrote:
>I'm used to the variations exemplified by "color"/"colour" and
"advertise"/"advertize", but I'm not used to "-ent"/"-ant" variations.
Can you provide some other examples of that?

Then there's grey (UK) vs. gray (US). Now we're really into a gr{e,a}y
area.
Well since they call them greyhounds and not grayhounds I have always
been partial to grey. But since none of this mattered in English until
recently with the likes of Webster, folks just spelled words anyway way
they wished. If it got the point across, then it was good! A friendlier
time for dyslexics.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Aug 27 '08 #20
Ben C wrote:
On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>Sander Tekelenburg wrote:
[...]
>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.

It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.

Many of those optional variant UK spellings are basically French.
"dependent" and "advertize" are closer to the original Latin and Greek
respectively.
I am SO glad to hear that, as for years I've been accused of mispellings.
Aug 27 '08 #21
Stan Brown wrote:
Tue, 26 Aug 2008 17:46:44 +0100 from Steve Swift
<St***********@gmail.com>:
>In most cases where US and UK usage of English differs, the US version
is often (perhaps usually) closer to the original.

Correct. All or most of those -ize, -ise verbs verbs come from Greek
verbs in -izo, so the -ise spelling is further from the original. hat
doesn't mean they're wrong in the UK, of course.
I heartily agree, but try telling that to M$'s spell checker!

Aug 27 '08 #22
On 2008-08-27, Rick Merrill <ri***********@gmail.comwrote:
Ben C wrote:
>On 2008-08-26, John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
>>Sander Tekelenburg wrote:
[...]
>>2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .

No, dependant is acceptable, as probably a UK variant since it is more
like French.

It's a bit like "advertize" which was being quibbled over the other
day-- in UK English "advertise" is also acceptable.

Many of those optional variant UK spellings are basically French.
"dependent" and "advertize" are closer to the original Latin and Greek
respectively.

I am SO glad to hear that, as for years I've been accused of mispellings.
Yes although I was wrong about "advertize", which is not really
acceptable in UK or US English (although some dictionaries do list it).

I don't think the root is the same. The "-ise" in advertise, as it
should be spelt, is not the Greek -ize that's in all those other words
like "proselytize".
Aug 27 '08 #23
In article <48**********@news.bluewin.ch>,
John Hosking <Jo**@DELETE.Hosking.name.INVALIDwrote:
Sander Tekelenburg wrote:
[...]
<http://www.euronet.nl/~tekelenb/WWW/userfriendlierhyperlinks/>.

[...] It seems like a cool idea to me for you to point to a list of MIME
types.
After giving it some thought, I think it would be better not to.

Authors should ensure that the value of the type attribute is the same
as the MIME type the server sends for the file in question.

In other words, authors should already ensure anyway that files they
serve are accompanied with an appropriate MIME type. (For *that* they'll
need a list of appropriate MIME types, of course, but server
configuration is beyond the scope of this article.) Assuming they do
bother to configure their server appropriately, they will already know
which value to use for the type attribute of each specific link.
Assuming they do *not* bother to ensure the server sends the 'right'
MIME type, handing them a list of MIME types with this article will
probably result in (some) authors entering a different value in the type
attribute than the server actually sends... (No doubt authors, or
authoring tools, already make that mistake today. But I see no reason
why I should encourage that ;))

[...]
2. I believe "dependant" should be spelled "dependent". See
http://encarta.msn.com/dictionary_18...dependant.html .
Heh :)
3. The word "known" is missing an "n". Search for "kown".
Thanks. Fixed.

--
Sander Tekelenburg
The Web Repair Initiative: <http://webrepair.org/>
Aug 28 '08 #24

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

Similar topics

4
by: Porthos | last post by:
Here's a good one. I want mouseover text to pop up for anchor text. I need to extract the mouseover text from one attribute in the XML document and the anchor text from a second attribute. I...
3
by: Ton den Hartog | last post by:
What is the difference between a link and an anchor in Javascript (DOM level 0) ? Ton -- Computer museum tonh: http://www.tonh.net/museum - 10.000 visitors !! GGGallery website generator:...
22
by: Haines Brown | last post by:
I have a document with a set of internal links such as: <a name="Z1"></a>... <a name="Z2"></a>... The W3C validator objects to the first instance of the name attribute: There is no attribute...
1
by: Arthur Pratz | last post by:
Hi all, I have a two page web site and im trying to set it up so that when you click a link on my link bar, it will take you to my products page. However, depending on what link you click on the...
4
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
4
by: catyionic | last post by:
Greetings: I have numerous links on index.html...example of one..... <A HREF="stage.html#Flash" target="left">Flash</A> It connects to page named stage.html ... which contains... <a...
2
by: skipc | last post by:
I posted a recent message regarding navigating a table using arrow keys. I've got the code for the navigation working. My table contains rows of links (anchors). I can get to a specific link...
3
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
16
by: Frances | last post by:
<a href="#1"> <a name="#1"> this link is not working in FF (works fine in IE..) would appreciate thoughts/suggestions.. thank you.. Frances
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.