How To Link CSS into HTML.


Hello Guys, in todays blog we going to talk about "How to link CSS into HTML". So, first we need to create html document:


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  
</body>
</html>


So, Now You need to write this code before <head> and after <title>:

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

then you need to create CSS document. but rember your css document name should be match with href tag in the code. So, like this you can link many CSS document into HTML document. So, thats it guys.

Post a Comment

0 Comments