0

which code changes the colour of <head> element?

I want to match the colour of my website's <head> with its <body> with a css code if possible, yet I couldn't do it by: head { background-color:"#45B39D"; }

4th Oct 2019, 3:16 PM
Alireza
3 Réponses
+ 2
because the head element isn't for content to displaying. instead it's for storing information such as page title. in Chrome browser, right click the part you want to change color, choose "inspect", and you can view the corresponding html element in Developers Tool. Then, open your source file in IDE, and add class name to the element, and access it in your stylesheet with its class name.
4th Oct 2019, 3:21 PM
Gordon
Gordon - avatar
0
Thank you Gordon 👍🏻👍🏻👍🏻
4th Oct 2019, 3:27 PM
Alireza
0
<Head> o <header>? Head is not possible because in head there are not elements to show in the web page. All into body are elements to show in the web page.
4th Oct 2019, 4:21 PM
Sebastián Morales
Sebastián Morales - avatar