The short answer is to code it into your website: <link rel="stylesheet" type="text/css" href="style.css"/> where style.css is the style sheet.
<link href="basic.css" type="text/css" rel="stylesheet" media="screen"/> <link href="print.css" type="text/css" rel="stylesheet" media="print"/>
<link href="css/style.css" rel="stylesheet" type="text/css" /> The link tag refers to an external stylesheet while the style tag is used if your CSS is inside the HTML document under the <head>.
Attaching a CSS file is done in the <head> of your HTML document with a <link /> tag. Here's the formatting: <link type="text/css" rel="stylesheet" href="YOURFILE.css" />
Add this: <link rel="stylesheet" href="normalview.css" type="text/css" media="screen" /> <link rel="styleshet" href="printview.css" type="text/css" media="print" />
To link a CSS file using a relative path, you need to specify the path from your HTML file to the CSS file. For example, if your CSS file is in a folder named "styles" located in the same directory as your HTML file, you would use: <link rel="stylesheet" href="styles/style.css">. If the CSS file is in a parent directory, you would use: <link rel="stylesheet" href="../style.css">. Adjust the path according to the actual directory structure of your project.
You can use the link tag to specify the style sheet you want to link into your web page. You put it into the head area. To link a file called YourStyle.css into your page, then you would do it like this: <link rel="stylesheet" type="text/css" href="YourStyle.css">
In this example, I'm using a filename titled style.css located in the CSS folder: <link href="css/style.css" rel="stylesheet" type="text/css" /> Insert this line inside your <head> tag. It then refers to an external stylesheet.
You cannot attach a stylesheet with a servlet. Stylesheets are related to HTML and User Interface layer and hence can be attached to JSP pages.
Extensible StyleSheet Language
Put this in the <head> tags: <link rel="stylesheet" href="css/css.css"> /\ l Change this bit depending on where the css file is.
You need to have the files in the same folder. Add this to HTML: <link rel="stylesheet" type="text/css" href=".css">
try stylesheet. it work for me