+ 1

Can't we change the style of title using CSS?

This was my code <title style=" color:green; background-color:black;"> Test Page </title> It didn't work:( Is there any problem in the code??

2nd Sep 2016, 12:03 PM
ChallengeMeIfYouDare
ChallengeMeIfYouDare - avatar
14 ответов
+ 5
The problem is that you are probably using title tag to write something in the page like "This is my title" but the title tag is the wrong tag to use in this case. You've to use the h1 tag <h1>...<h1> to display your title in the page. Title tag is used to display the name of the window...near the favicon!
4th Sep 2016, 10:20 PM
Antonio Panfili
+ 3
No we can't Reasons given by several friends so I don't repeat.:-)
10th Sep 2016, 3:26 AM
Anil/Anant/1949Nov
Anil/Anant/1949Nov - avatar
+ 3
no need to change title style
20th Jan 2017, 11:06 AM
Mladen Stojkovic
Mladen Stojkovic - avatar
+ 2
you cannot style the title of a webpage. css only allows you to style everything inside the body tag.
5th Sep 2016, 9:14 AM
Oshada Seneviratne
Oshada Seneviratne - avatar
+ 2
no no never you can't apply any style to title or anythinges between tag <head>.......</head> ^^
22nd Sep 2016, 7:50 PM
Moh Med
Moh Med - avatar
+ 1
okay I actually just reread ur question and like the others Said no. besides the title that you seem to wanna change would be the one displayed on the browser tab ?!
2nd Sep 2016, 3:34 PM
Fab T
Fab T - avatar
+ 1
NO of course you can't .. cuz the web browser shows all titles in the same way and you can't change it
3rd Sep 2016, 9:22 AM
Specter 7
Specter 7 - avatar
+ 1
<title> tag goes inside the <head> tag. you can only style everything inside the <body> tag.
8th Sep 2016, 10:04 AM
Oshada Seneviratne
Oshada Seneviratne - avatar
+ 1
No because whatever you write in a title tag that is shown by the browser in title bar. That would definitely be same for all other pages too cus it's the tittle of your web page. Styling that cannot be done. U want to make test page green with background and want to display that as an information shown on your web page go for heading tag.
9th Sep 2016, 7:16 AM
Ambica Deshpande
Ambica Deshpande - avatar
0
No
2nd Sep 2016, 9:05 PM
Joe
0
its need change the metadata. it same like you change the icon in title bar.
4th Sep 2016, 7:32 AM
Suni Aji Sukarsa
Suni Aji Sukarsa - avatar
0
no
8th Sep 2016, 9:58 AM
GAMERSN
GAMERSN - avatar
0
of course no :)
13th Sep 2016, 9:34 AM
Miss.Atti
0
you can put <marquee> tag inside your title tag to animate the text of you title like 90's pages :p
4th Nov 2016, 5:05 AM
Omar Campistrano
Omar Campistrano - avatar