Hi, I have a JSP related question. There is a tag <LINK REL=STYLESHEET HREF="JSP-Styles.css" TYPE="text/css"> inside a sample JSP file. I know it's not part of JSP, but I need help on what it is. Can anyone help me? Thanks.
Hi, Stylesheet is a separate class in which you define the accessories for your Html display such as header ,footer,font type,size,bgColor,etc.This class is placed in the same package where the Jsp is.You then use a tag as specified by you,that will import all these parameters from the ".css" class.So the code for this is separated from the actual business logic and you can concentrate on your logic instead of these trivial things.Code is also easy to understand in such case. Is it enough?I ve not written any .css file but ve used it . I think it is enough.
I don't really prefer to have it lumped together with the term "class" because that makes it sound like programming or even Java terminology itself. I look at it like a reference file that you place in your HTML so the web browser can then read that file and interpret a normal HTML tag, (or custom one you've "created") to see what attributes to add to it. Such as you could specify the H1 tag of html to always be of a specific font, and color, etc and put that in your css file. That way if you ever want to change it you only have to modify one file, not a ton of HTML files. Hope that helps. Ryan
Ryan Headley<br /><a href="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>