Tell us what’s happening:
I am using codepen.io to do the project but I cant understand how to connect HTML codes with CSS when they are in different windows. I need your help to understand this. I did all the modules but somehow during the project, I get confused how to start and make anything appear. Thank you very much for your help. I appreciate it.
In Codepen, there are three windows: for HTML, for CSS and for Javascript.
You don’t need to link them. They are linked for you automatically behind the scenes . Simply write HTML in html section, CSS in CSS section. Take note: It is not necessary to include <!doctype html> or <head> </head> tags in your HTML because they have already been added for you behind the scenes. For example copy and paste the code below in HTML section
then save. You will see the result in the window. As simple as that. Just start coding!
EDIT:
Make sure you have a codepen account before you start doing all of the above.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.