I sincronized my html with css but i don’t know why it doesn’t work, when i go to my website the colour of the text didn’t change, i’ve already saved my project.
link rel="sylesheet"href=“style.css”/
body{
color: blueviolet;
}
Welcome to the community @LeoDash08 !
There are a few typing errors that we all could make in the link.
It should be stylesheet.
Leave a space after the closing quotation after stylesheet.
It should be styles.css.
If you are working on a lesson in freeCodeCamp, please, if possible post the complete code with the problem?
I hope the above helps you. But, in all honesty, without seeing the code, I cannot know for sure if this is the proper guidance for any other problem.
Happy coding!
I changed the syles for styles and put a space but for any reason my css doesn’t work and when i open my page only shows the html text without colour changes.
It appears the filename of your CSS stylesheet is style.css
but you are linking to styles.css
. These need to be the same. Either change the filename to styles.css
or link to style.css
.
Thank you for making those changes, @LeoDash08 !
meta name=“viewport” content="width=device-width, initial-scale=1.0">
It appeas the last part of the second meta element is missing.
This may be the problem.
Try updating that and see if it works for you @LeoDash08.
If you can copy and paste all of your code using ``` three backticks before and after each complete set of code, it would help to analyze and guide you better.
Keep up the good progress.
thank you very much, it works now!
was your info and the info of bbsmooth that helped me with the problem
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.