The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> type="text/css"
pinklemon
post Sep 20 2014, 01:52 PM
Post #1


Advanced Member
****

Group: Members
Posts: 140
Joined: 29-June 14
Member No.: 21,166



Hello!
Please, can someone translate this
CODE

type="text/css"


to (human) english?
Many thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 20 2014, 04:20 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,986
Joined: 9-August 06
Member No.: 6



Simply put it tells the browser what style language the linked to docuement it written in. Theoretically there could be more than one style language to choose from. It's the same reason type is use with SCRIPT also.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pinklemon
post Sep 21 2014, 10:33 AM
Post #3


Advanced Member
****

Group: Members
Posts: 140
Joined: 29-June 14
Member No.: 21,166



Hello!
I found somwhre I do not have to write this in HTML 5.
Do there exist other values instead of text/css and which?
Many thanks!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 21 2014, 11:02 AM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,986
Joined: 9-August 06
Member No.: 6



The spec doesn't explicitly say it should be omitted. It says it's purely advisory and gives directions about how browsers should act if it is omitted. I'd say it's safe to omit it, but that it is with others flavours of HTML too. You will get a validation error though which you don't with HTML5. Question is why do you want to leave it out? Save a few bytes? wink.gif
http://www.w3.org/TR/html5/document-metada...he-link-element

Yes, there are other style languages, but none standardized. There is the the old JSSS suggested by Netscape back in the day, but Microsoft's CSS won that battle. Probably only old Netscape browsers understand JSSS. Point it there could be other languages in the future and that's why type is used with LINK and STYLE.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pinklemon
post Sep 21 2014, 11:43 AM
Post #5


Advanced Member
****

Group: Members
Posts: 140
Joined: 29-June 14
Member No.: 21,166



Thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd September 2018 - 12:11 AM