Web Hosting CSS & Stylesheet Forums

Add Me

User Name
Password
Go Back   CSS & Stylesheet Forums > CSS Forumz: Main

Welcome to the CSS & Stylesheet Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags:



Reply
  #1 (permalink)  
Old 08-25-2008, 04:29 PM
Andreas Prilop
Guest
 
Posts: n/a
Diggs:
Default 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?
Reply With Quote


Sponsored Links
  #2 (permalink)  
Old 08-25-2008, 04:29 PM
Joost Diepenmaat
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

Andreas Prilop <prilop4321@trashmail.net> writes:

> 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/
Reply With Quote


  #3 (permalink)  
Old 08-26-2008, 02:48 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

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

Reply With Quote


  #4 (permalink)  
Old 08-26-2008, 02:48 PM
Sander Tekelenburg
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

In article
<Pine.GSO.4.63.0808251633210.2568@s5b004.rrzn.un i-hannover.de>,
Andreas Prilop <prilop4321@trashmail.net> wrote:

> 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/>
Reply With Quote


  #5 (permalink)  
Old 08-26-2008, 02:48 PM
John Hosking
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

Sander Tekelenburg wrote:
> In article
> <Pine.GSO.4.63.0808251633210.2568@s5b004.rrzn.un i-hannover.de>,
> Andreas Prilop <prilop4321@trashmail.net> wrote:
>
>> 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*.
Reply With Quote


  #6 (permalink)  
Old 08-26-2008, 02:49 PM
Ben C
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

On 2008-08-26, John Hosking <John@DELETE.Hosking.name.INVALID> wrote:
> 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.
Reply With Quote


  #7 (permalink)  
Old 08-26-2008, 08:26 PM
Guy Macon
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute




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/>

Reply With Quote


  #8 (permalink)  
Old 08-26-2008, 08:26 PM
Ben C
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

On 2008-08-26, Guy Macon <http> wrote:
>
>
>
> 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.
Reply With Quote


  #9 (permalink)  
Old 08-26-2008, 08:26 PM
Andy Dingley
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

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-(
Reply With Quote


  #10 (permalink)  
Old 08-26-2008, 08:26 PM
Steve Swift
Guest
 
Posts: n/a
Diggs:
Default Re: Anchor with TYPE attribute

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
Reply With Quote


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:26 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.




Inactive Reminders By Mished.co.uk