I have finished all the lessons in Responsive Web Design and now I am starting my first personal code project. While going through the lessons, I have never seen html, css, and JS in separate windows; 1 for html, 1 for css, and 1 for js.
Does the <style/ ids/classes stuff go in the css window? and the nested header/footer/article stuff go in the html window?
Maybe someone could give me insight into how to use both windows.
Thanks
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.30
You don’t need to include the style tags for the css section.
You can just write css in there because style tags are html tags.
But for these projects you don’t need to use styles tags at all.
Yes.
You also don’t need to include head, doctype, or body tags because that is already built into codepen.
No, you do want to practice using both sections.
I think it will help if I broke down one of the lessons and showed you how to split up the html and css.
Here is a lesson that we can break up into an html and css section.
In codepen, here is all of the html that we want to put inside the html section.
And then everything inside the style tags go into the css section.
Do no include the actual style tags.
Just include the code inside the style tags like this.