HTML + CSS = How?


#1
https://discuss.codecademy.com/t/i-was-just-wondering/

How can you combine a HTML document and a CSS document?


#2

TO BE JUST CLEAR:

I'm referring to the link


#3

@tyrycoding

You can put CSS inside an html tag like this.

<style>
selector {
properties: values;
}
</style>
``` 

You can include CSS in HTML

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

#4

Thank you. Guess JavaScript and jQuery work the same way, just in JavaScript.

P.S. Khan Academy (another learning site) made me learn some of JavaScript.


#5

I think I will use

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

#6

You will have to name your CSS file stylesheet.css and make sure to have your HTML and CSS in the same folder


#7

Yes, I knew "stylesheet.css" as the name. I should rename it for "CSS.css" or something...


#8

You can rename it whatever you want to.. Always include .css and your css file needs to be named that :slight_smile: