In the CSS File, first I reset default margins and padding to 0; which automatically browser takes. It is a descriptive videos tutorial for using static resources like Images, CSS and Javascript in Spring mvc. var head = document.getElementsByTagName ('HEAD') [0]; var link = document.createElement ('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'style.css'; head.appendChild (link); No. How to Upload Image into Database and Display it using PHP ? Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. What you need to do first is, open application/config/autoload.php. code. The getResourceAsStream method returns an InputStream. . J is for JavaScript, CSS, HTML & Other Static Files. When loaded and parsed your browser will continue to render the web page. I am trying to get a simple Rock Paper Scissors app to work with a Node.js server. The very easy and first to do way is go to main css file called styles.css in the src root floder.This styles.css file is globally declared file. The File class from the java.io package, allows us to work with files.. To use the File class, create an object of the class, and specify the filename or directory name: Just open the file in the browser, you will see the below picture in the browser. How to set the default value for an HTML