Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I give a title tag a color and different font?

Tags:

html

css

tags

title

I was wondering if there is a way to give a page title a different color and font in the page tab. Something like:

title{ color: red; font: 12px tahoma;} 

Just thought it would be fun to add into sites. I tried the above and it didn't work in my CSS file. Also tried giving it a class="title"giving it a CSS style of .title{ color: red; font: 12px tahoma;} but that didn't work either.

like image 871
absolute neXus Avatar asked Nov 27 '12 07:11

absolute neXus


Video Answer


1 Answers

Answer is NO you cannot do that in any way....you cannot apply any styles to page title, btw you can just blink the titles

Blinking Titles

More Info On CSS Which You Are Using:

If you are declaring something like this

title{ color: red; font: 12px tahoma;} 

You don't need to define any class as you are targeting specific title tag which is only 1 in your whole document

And if you are using .title than your CSS should be

.title{ color: red; font: 12px tahoma;} 
like image 124
Mr. Alien Avatar answered Nov 11 '22 14:11

Mr. Alien