you can easily link a CSS and JS file in your page. Follow this example code
CSS:
<link rel="stylesheet" href="<?php echo base_url(); ?>style.css" />
JS:
<script src="<?php echo base_url(); ?>style.js"></script>
If your CSS file have in a folder Like: Project Folder -> assets -> CSS ->style.css
Then try this code
CSS:
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/style.css" />
If your JS file have in a folder Like: Project Folder -> assets -> JS ->style.js
Then try this code
JS:
<script src="<?php echo base_url(); ?>assets/js/style.js"></script>
Question and answer is powered by AnsPress.io