0
How to connect CSS with HTML without a separate file?
4 Answers
+ 1
Try to use Inline CSS .
It is a good practise to use a separate CSS file to separate styles from data.
+ 1
the common way are separate files, but you can use inline styles or write a style block in the header.
for example:
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
+ 1
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
CSS code
</style>
</head>
<body>
<!-- HTML code-->
</body>
</html>
0
How to make a built-in CSS file in HTML