Ask coding questions

← Back to all posts
How can i put style.css with my index.html
Kirtansyn (1)

so i made a index.html thingy to make a website. if you watch this video you will see that he has a apart code for style.css. how do i do this?

Vandesm14 (2735)

All you need to do is add CSS to the style.css file since you already have it linked in line 8 of index.html.

SixBeeps (5221) already does this for you. Under your <head> tag, do you see where it does this? It's on the line that says:

<link href="style.css" rel="stylesheet" type="text/css" />

Essentially, this tells the webpage that there is an external reference with the name "style.css", which is a stylesheet in the CSS format.