Sure you can!
<html>
<head>
<title>bla bla bla ~</title>
<link rel="stylesheet" href="(path of file below)" />
</head>
<body>
<p>Hello World!</p>
</body>
</html>body
{
background: #000000;
}
h1
{
color: #FFFFFF;
}Separating css file is good habit. but if you really really hate to separate into multiple files...
<html>
<head>
<title>bla bla bla ~</title>
<style>
body
{
background: #000000;
}
h1
{
color: #FFFFFF;
}
</style>
</head>
<body>
<p>Hello World!</p>
</body>
</html>You can combine it using style tag, but not recommended.