+ 1

CSS issue

I've recently started to learn CSS and I am having an issue with the code. I have tried to make the head and body on my latest code (CSS 1) different colours and it isn't working. How do I fix this?

25th Jan 2018, 12:37 PM
Don't call me princess
Don't call me princess  - avatar
10 ответов
+ 5
You should link your code with the question. It will give us opportunity to answer you correctly.
25th Jan 2018, 12:42 PM
Akash Pal
Akash Pal - avatar
+ 3
@D.C.M.P. There will be a insert option when you are adding a post to add code or another post. If there's not then link your code there by it copying it's link from sololearn website.
25th Jan 2018, 12:53 PM
Akash Pal
Akash Pal - avatar
25th Jan 2018, 1:04 PM
Don't call me princess
Don't call me princess  - avatar
+ 2
Hope it helps
25th Jan 2018, 1:04 PM
Don't call me princess
Don't call me princess  - avatar
+ 2
Yes, @Splitty thank you
25th Jan 2018, 1:13 PM
Don't call me princess
Don't call me princess  - avatar
+ 1
The head doesn't get rendered. If you mean the header, then just style the header element in your code. But your header container has to be inside of the body tag. No way to style the actual head tag.
25th Jan 2018, 12:40 PM
SplittyDev
SplittyDev - avatar
+ 1
Thanks guys. @Akash I don't know how to do that. I used the sololearn html app before but this one is new to me and I'm still figuring it out. @Niush and @Splitty thanks for clarifying.
25th Jan 2018, 12:46 PM
Don't call me princess
Don't call me princess  - avatar
+ 1
@Akash OK. I'll attempt to make a new post called CSS Problem 2. If I can't see the insert option I'll go to the site.
25th Jan 2018, 12:55 PM
Don't call me princess
Don't call me princess  - avatar
+ 1
I believe, this is what you want to do? https://code.sololearn.com/WocV905k05Ea/?ref=app Head shouldn't contain any elements, it's just for Metadata. I moved your code into body, and made the title a h1 element. Hope that helps.
25th Jan 2018, 1:08 PM
SplittyDev
SplittyDev - avatar
0
<head> section can't be customized.
27th Jan 2018, 4:17 AM
Prakash Adhikari
Prakash Adhikari - avatar