style css
snippet in html

how to link css to html

user6653

  <link rel="stylesheet" href="styles.css">

link to css

user4631

/* Answer to: "link to css" */
<head>
  <link rel="stylesheet" type="text/css" href="yourcss.css">
</head>

add stylesheet html

user1051

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

html style sheet

user3952

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

add css to an html file

user3117

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

style css

user8808


<!DOCTYPE html>
<html>
<head>
<style>

 body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}

</style>
</head>
<body>

<h1>This is a 
 heading</h1>
<p>This is a paragraph.</p>

</body>
</html>