1)Make your html code in a separate .html file in a folder
2)Make your css code in a .css file in a folder(same folder preffered for better management)
3)Place this line inside the head tag in .html file
<link rel="stylesheet" href="yourfilename.css"
4)Remember to put the full path incase html and css files are in different directories.
Hope it helps😊
First separate your project files into a folder, then create a separate folder for the style sheets in cs. Then encode the css normally by notepad, save it in the folder you just created, then just link in your document html using the following code:
<link rel = "stylesheet" href = "/ css / style.css">
For this code to work you need to create the folder (which we mentioned earlier) as: css. So that the browser understands where your style document is saved.