Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why people continue to use "text/css"? [closed]

Tags:

html

css

w3c

I have read several results of a Google search, such as this nice question: Is type="text/css" necessary in a <link> tag?. However, I am currently going through some css3 (it's not that new) code and I see text/css everywhere.

Has something changed, or this is just an old habit that we (the young people) should not inherit?

like image 518
gsamaras Avatar asked Dec 07 '15 21:12

gsamaras


People also ask

Is text CSS necessary?

It's not required with the HTML5 spec, but for older versions of HTML is it required.

Is it okay to use important CSS?

The ! important rule in CSS is used to add more importance to a property/value than normal. In fact, if you use the ! important rule, it will override ALL previous styling rules for that specific property on that element!

How do I keep text from resizing CSS?

To prevent a text field from being resized, you can use the CSS resize property with its "none" value. After it you can use the height and width properties to define a fixed height and width for your <textarea> element.

How do I get rid of text in CSS?

Use display:none , and the text is gone.


1 Answers

Nothing changed, it is used for backward compability and will probably appear more rarely with time, as more installed browser will support HTML5.

like image 182
Wiertek Avatar answered Sep 26 '22 19:09

Wiertek